/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pr3_ia1;

import com.itextpdf.text.Document;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import java.awt.Color;
import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JOptionPane;

/**
 *
 * @author Darick
 */
public class gui_pr3_ia1 extends javax.swing.JFrame {

    /**
     * Creates new form gui_pr3_ia1
     */
    //variables para movimiento de piezas
    public JLabel pieza_s;
    public int pospieza_s;
    public String[][] tablero;
    public String[] piezas;
    public JLabel[][] tablero_f;
    public JLabel[] piezas_f;
    public JLabel ultimap;
    //variables para el uso de socket    
    public Socket skClient;
    static final String HOST = "localhost";
    public int puerto_envio;
    public int puerto_recepcion;    
    public DataOutputStream salida;
    public BufferedReader entrada;   
    public hsocket hilosk = new hsocket(this);
    //variables para la bitacora
    public ArrayList<String> bitacora;
    public int nturno;
    //manejo de turnos
    public int turno;
    public int jugador;
    //arbol para minimax
    public Nodo arbolmm;
    public String movimiento;
    
    public gui_pr3_ia1() {
        initComponents();
        tablero = new String[17][13];  
        tablero_f = new JLabel[17][13];
        piezas = new String[60];
        piezas_f = new JLabel[60];
        this.cmb_modoalg.setEnabled(false);
        this.pnl_tablero.setVisible(false);
        this.lbl_ganador.setText(" ");
        iniciar_logico(2);
        iniciar_fisico();
        movimiento = "";
    }
    
    private void iniciar_fisico(){
        this.lbl_ganador.setText(" ");
        //piezas
        piezas_f[0]=this.j1_1;piezas_f[1]=this.j1_2;piezas_f[2]=this.j1_3;piezas_f[3]=this.j1_4;piezas_f[4]=this.j1_5;
        piezas_f[5]=this.j1_6;piezas_f[6]=this.j1_7;piezas_f[7]=this.j1_8;piezas_f[8]=this.j1_9;piezas_f[9]=this.j1_10;
        piezas_f[10]=this.j1_11;piezas_f[11]=this.j1_12;piezas_f[12]=this.j1_13;piezas_f[13]=this.j1_14;piezas_f[14]=this.j1_15;
        piezas_f[15]=this.j1_16;piezas_f[16]=this.j1_17;piezas_f[17]=this.j1_18;piezas_f[18]=this.j1_19;piezas_f[19]=this.j1_20;
        piezas_f[20]=this.j1_21;piezas_f[21]=this.j1_22;piezas_f[22]=this.j1_23;piezas_f[23]=this.j1_24;piezas_f[24]=this.j1_25;
        piezas_f[25]=this.j1_26;piezas_f[26]=this.j1_27;piezas_f[27]=this.j1_28;piezas_f[28]=this.j1_29;piezas_f[29]=this.j1_30;
        
        piezas_f[30]=this.j2_1;piezas_f[31]=this.j2_2;piezas_f[32]=this.j2_3;piezas_f[33]=this.j2_4;piezas_f[34]=this.j2_5;
        piezas_f[35]=this.j2_6;piezas_f[36]=this.j2_7;piezas_f[37]=this.j2_8;piezas_f[38]=this.j2_9;piezas_f[39]=this.j2_10;
        piezas_f[40]=this.j2_11;piezas_f[41]=this.j2_12;piezas_f[42]=this.j2_13;piezas_f[43]=this.j2_14;piezas_f[44]=this.j2_15;
        piezas_f[45]=this.j2_16;piezas_f[46]=this.j2_17;piezas_f[47]=this.j2_18;piezas_f[48]=this.j2_19;piezas_f[49]=this.j2_20;
        piezas_f[50]=this.j2_21;piezas_f[51]=this.j2_22;piezas_f[52]=this.j2_23;piezas_f[53]=this.j2_24;piezas_f[54]=this.j2_25;
        piezas_f[55]=this.j2_26;piezas_f[56]=this.j2_27;piezas_f[57]=this.j2_28;piezas_f[58]=this.j2_29;piezas_f[59]=this.j2_30;
        
        
        //1
        tablero_f[0][6]=this.t0107;
        //2
        tablero_f[1][5]=this.t0206;tablero_f[1][6]=this.t0207;
        //3
        tablero_f[2][5]=this.t0306;tablero_f[2][6]=this.t0307;tablero_f[2][7]=this.t0308;
        //4
        tablero_f[3][4]=this.t0405;tablero_f[3][5]=this.t0406;tablero_f[3][6]=this.t0407;tablero_f[3][7]=this.t0408;
        //5
        tablero_f[4][0]=this.t0501;tablero_f[4][1]=this.t0502;tablero_f[4][2]=this.t0503;tablero_f[4][3]=this.t0504;
        tablero_f[4][4]=this.t0505;tablero_f[4][5]=this.t0506;tablero_f[4][6]=this.t0507;tablero_f[4][7]=this.t0508;
        tablero_f[4][8]=this.t0509;tablero_f[4][9]=this.t0510;tablero_f[4][10]=this.t0511;tablero_f[4][11]=this.t0512;
        tablero_f[4][12]=this.t0513;
        //6
        tablero_f[5][0]=this.t0601;tablero_f[5][1]=this.t0602;tablero_f[5][2]=this.t0603;tablero_f[5][3]=this.t0604;
        tablero_f[5][4]=this.t0605;tablero_f[5][5]=this.t0606;tablero_f[5][6]=this.t0607;tablero_f[5][7]=this.t0608;
        tablero_f[5][8]=this.t0609;tablero_f[5][9]=this.t0610;tablero_f[5][10]=this.t0611;tablero_f[5][11]=this.t0612;
        //7
        tablero_f[6][1]=this.t0702;tablero_f[6][2]=this.t0703;tablero_f[6][3]=this.t0704;tablero_f[6][4]=this.t0705;
        tablero_f[6][5]=this.t0706;tablero_f[6][6]=this.t0707;tablero_f[6][7]=this.t0708;tablero_f[6][8]=this.t0709;
        tablero_f[6][9]=this.t0710;tablero_f[6][10]=this.t0711;tablero_f[6][11]=this.t0712;
        //8
        tablero_f[7][1]=this.t0802;tablero_f[7][2]=this.t0803;tablero_f[7][3]=this.t0804;tablero_f[7][4]=this.t0805;
        tablero_f[7][5]=this.t0806;tablero_f[7][6]=this.t0807;tablero_f[7][7]=this.t0808;tablero_f[7][8]=this.t0809;
        tablero_f[7][9]=this.t0810;tablero_f[7][10]=this.t0811;
        //9
        tablero_f[8][2]=this.t0903;tablero_f[8][3]=this.t0904;tablero_f[8][4]=this.t0905;tablero_f[8][5]=this.t0906;
        tablero_f[8][6]=this.t0907;tablero_f[8][7]=this.t0908;tablero_f[8][8]=this.t0909;tablero_f[8][9]=this.t0910;
        tablero_f[8][10]=this.t0911;
        //10
        tablero_f[9][1]=this.t1002;tablero_f[9][2]=this.t1003;tablero_f[9][3]=this.t1004;tablero_f[9][4]=this.t1005;
        tablero_f[9][5]=this.t1006;tablero_f[9][6]=this.t1007;tablero_f[9][7]=this.t1008;tablero_f[9][8]=this.t1009;
        tablero_f[9][9]=this.t1010;tablero_f[9][10]=this.t1011;
        //11
        tablero_f[10][1]=this.t1102;tablero_f[10][2]=this.t1103;tablero_f[10][3]=this.t1104;tablero_f[10][4]=this.t1105;
        tablero_f[10][5]=this.t1106;tablero_f[10][6]=this.t1107;tablero_f[10][7]=this.t1108;tablero_f[10][8]=this.t1109;
        tablero_f[10][9]=this.t1110;tablero_f[10][10]=this.t1111;tablero_f[10][11]=this.t1112;
        //12
        tablero_f[11][0]=this.t1201;tablero_f[11][1]=this.t1202;tablero_f[11][2]=this.t1203;tablero_f[11][3]=this.t1204;
        tablero_f[11][4]=this.t1205;tablero_f[11][5]=this.t1206;tablero_f[11][6]=this.t1207;tablero_f[11][7]=this.t1208;
        tablero_f[11][8]=this.t1209;tablero_f[11][9]=this.t1210;tablero_f[11][10]=this.t1211;tablero_f[11][11]=this.t1212;
        //13
        tablero_f[12][0]=this.t1301;tablero_f[12][1]=this.t1302;tablero_f[12][2]=this.t1303;tablero_f[12][3]=this.t1304;
        tablero_f[12][4]=this.t1305;tablero_f[12][5]=this.t1306;tablero_f[12][6]=this.t1307;tablero_f[12][7]=this.t1308;
        tablero_f[12][8]=this.t1309;tablero_f[12][9]=this.t1310;tablero_f[12][10]=this.t1311;tablero_f[12][11]=this.t1312;
        tablero_f[12][12]=this.t1313;
        //14
        tablero_f[13][4]=this.t1405;tablero_f[13][5]=this.t1406;tablero_f[13][6]=this.t1407;tablero_f[13][7]=this.t1408;
        //15
        tablero_f[14][5]=this.t1506;tablero_f[14][6]=this.t1507;tablero_f[14][7]=this.t1508;
        //16
        tablero_f[15][5]=this.t1606;tablero_f[15][6]=this.t1607;
        //17
        tablero_f[16][6]=this.t1707;
    }
    
    private void iniciar_logico(int cantf){        
        bitacora = new ArrayList();
        nturno =1;
        //turno=this.cmb_jugador.getSelectedIndex()+1;
        turno=1;
        piezas[0]="1,7";piezas[1]="2,6";piezas[2]="2,7";piezas[3]="3,6";piezas[4]="3,7";
        piezas[5]="3,8";piezas[6]="4,5";piezas[7]="4,6";piezas[8]="4,7";piezas[9]="4,8";        
        piezas[10]="5,10";piezas[11]="5,11";piezas[12]="5,12";piezas[13]="5,13";piezas[14]="6,10";
        piezas[15]="6,11";piezas[16]="6,12";piezas[17]="7,11";piezas[18]="7,12";piezas[19]="8,11";
        piezas[20]="5,1";piezas[21]="5,2";piezas[22]="5,3";piezas[23]="5,4";piezas[24]="6,1";
        piezas[25]="6,2";piezas[26]="6,3";piezas[27]="7,2";piezas[28]="7,3";piezas[29]="8,2";
        
        piezas[30]="17,7";piezas[31]="16,6";piezas[32]="16,7";piezas[33]="15,6";piezas[34]="15,7";
        piezas[35]="15,8";piezas[36]="14,5";piezas[37]="14,6";piezas[38]="14,7";piezas[39]="14,8";        
        piezas[40]="13,10";piezas[41]="13,11";piezas[42]="13,12";piezas[43]="13,13";piezas[44]="12,10";
        piezas[45]="12,11";piezas[46]="12,12";piezas[47]="11,11";piezas[48]="11,12";piezas[49]="10,11";
        piezas[50]="13,1";piezas[51]="13,2";piezas[52]="13,3";piezas[53]="13,4";piezas[54]="12,1";
        piezas[55]="12,2";piezas[56]="12,3";piezas[57]="11,2";piezas[58]="11,3";piezas[59]="10,2";
        
        for (int f=0;f<17;f++){
            for (int c=0;c<13;c++){
                tablero[f][c]="0";
            }
        }  
        if (cantf==0){
            tablero[0][6]="1";
            tablero[1][5]="1";tablero[1][6]="1";
            tablero[2][5]="1";tablero[2][6]="1";tablero[2][7]="1";
            tablero[3][4]="1";tablero[3][5]="1";tablero[3][6]="1";tablero[3][7]="1";
            tablero[13][4]="2";tablero[13][5]="2";tablero[13][6]="2";tablero[13][7]="2";
            tablero[14][5]="2";tablero[14][6]="2";tablero[14][7]="2";
            tablero[15][5]="2";tablero[15][6]="2";
            tablero[16][6]="2";
        }
        if (cantf==1){
            tablero[0][6]="1";
            tablero[1][5]="1";tablero[1][6]="1";
            tablero[2][5]="1";tablero[2][6]= "1";tablero[2][7]= "1";
            tablero[3][4]="1";tablero[3][5]= "1";tablero[3][6]="1";tablero[3][7]="1";
            tablero[13][4]="2";tablero[13][5]= "2";tablero[13][6]="2";tablero[13][7]= "2";
            tablero[14][5]="2";tablero[14][6]= "2";tablero[14][7]= "2";
            tablero[15][5]="2";tablero[15][6]= "2";
            tablero[16][6]= "2"; 
            
            tablero[4][9]="1";tablero[4][10]="1";tablero[4][11]="1";tablero[4][12]="1";
            tablero[5][9]="1";tablero[5][10]="1";tablero[5][11]="1";
            tablero[6][10]="1";tablero[6][11]="1";
            tablero[7][10]="1";
            tablero[9][1]="2";
            tablero[10][1]="2";tablero[10][2]="2";
            tablero[11][0]="2";tablero[11][1]="2";tablero[11][2]="2";
            tablero[12][0]="2";tablero[12][1]="2";tablero[12][2]="2";tablero[12][3]="2";
            
        }
        if (cantf==2){
            tablero[0][6]="1";
            tablero[1][5]="1";tablero[1][6]="1";
            tablero[2][5]="1";tablero[2][6]="1";tablero[2][7]="1";
            tablero[3][4]="1";tablero[3][5]="1";tablero[3][6]="1";tablero[3][7]="1";
            tablero[13][4]="2";tablero[13][5]="2";tablero[13][6]="2";tablero[13][7]="2";
            tablero[14][5]="2";tablero[14][6]="2";tablero[14][7]="2";
            tablero[15][5]="2";tablero[15][6]="2";
            tablero[16][6]="2"; 
            
            tablero[4][9]="1";tablero[4][10]="1";tablero[4][11]="1";tablero[4][12]="1";
            tablero[5][9]="1";tablero[5][10]="1";tablero[5][11]="1";
            tablero[6][10]="1";tablero[6][11]="1";
            tablero[7][10]="1";
            tablero[9][1]="2";
            tablero[10][1]="2";tablero[10][2]="2";
            tablero[11][0]="2";tablero[11][1]="2";tablero[11][2]="2";
            tablero[12][0]="2";tablero[12][1]="2";tablero[12][2]="2";tablero[12][3]="2";
            
            tablero[4][0]="1";tablero[4][1]="1";tablero[4][2]="1";tablero[4][3]="1";
            tablero[5][0]="1";tablero[5][1]="1";tablero[5][2]="1";
            tablero[6][1]="1";tablero[6][2]="1";
            tablero[7][1]="1";
            tablero[9][10]="2";
            tablero[10][10]="2";tablero[10][11]="2";
            tablero[11][9]="2";tablero[11][10]="2";tablero[11][2]="2";
            tablero[12][9]="2";tablero[12][10]="2";tablero[11][2]="2";tablero[12][12]="2";
            
        }
    }
    
    public void pieza_selec(JLabel pieza,int npieza){
        if (ultimap==null)ultimap=pieza_s;
        pieza_s = pieza;
        pospieza_s = npieza;
        jugador = Integer.valueOf(pieza_s.getName().substring(1, 2));
    }
    
    public boolean buscar_en(int fila,int columna){
        if( (tablero[fila-1][columna-1].equals("1")) || (tablero[fila-1][columna-1].equals("2")) ) return true;
        return false;
    }
    
    public void mover(JLabel destino,int filad,int columnad){
        String[] pos = piezas[pospieza_s].split(",");
        int f = Integer.valueOf(pos[0]);
        int c = Integer.valueOf(pos[1]);
        if ((pieza_s!=null)&&(jugador==turno)/*&&(ultimap==pieza_s)*/){
            if (validar(filad,columnad,f,c)){                
                pieza_s.setLocation(destino.getLocation());
                //
                piezas[pospieza_s]= String.valueOf(filad)+ ","+String.valueOf(columnad);
                tablero[f-1][c-1]="0";
                tablero[filad-1][columnad-1]=String.valueOf(turno);                
                //
                if(movimiento.equals(""))
                    movimiento = "O("+f+","+c+"); ";
                movimiento += "O("+String.valueOf(filad)+","+String.valueOf(columnad)+"); ";
                ////
                ultimap = pieza_s;
            }/////
            //puede agregarse un mensaje de movimiento invalido
            //////
        }else{
            JOptionPane.showMessageDialog(this, "NO puede moverse esta pieza seleccione otra");
        }
    }    
        
    public boolean validar(int fila_d, int columna_d,int fila_o, int columna_o){
          //comprobar dimension de matriz
        if (((fila_d<18 && fila_d>0)&&(columna_d<14&&columna_d>0)) && tablero_f[fila_d-1][columna_d-1] != null){                                           
            // en la misma fila
            if ( fila_o==fila_d){
                //para mover 1 espacio
                if (    ((columna_o+1)==columna_d) || ((columna_o-1)==columna_d) ){                                    
                    return true;
                }
                //para saltar
                else{ 
                    //izquierda
                    if((columna_o-2)==columna_d){
                        if(buscar_en(fila_o,columna_o-1)) return true;
                    //derecha
                    }else if ((columna_o+2)==columna_d){
                        if(buscar_en(fila_o,columna_o+1)) return true;
                    }
                }
            }         
            // en fila par
            else if ((fila_o%2)==0){      
                //para mover 1 espacio
                if (((fila_o + 1) == fila_d) || ((fila_o - 1) == fila_d)) {                   
                        if (((columna_o + 1) == columna_d) || (columna_o == columna_d)) {
                            return true;
                        }
                }else{
                    //para saltar arriba
                    if ((fila_o - 2) == fila_d) {
                        //derecha
                        if ((columna_o + 1) == columna_d) {
                            if(buscar_en(fila_o-1,columna_o+1)) return true;
                        }
                        //izquierda
                        if ((columna_o - 1) == columna_d) {
                            if (buscar_en(fila_o - 1, columna_o)) return true;
                        }
                        //para saltar abajo
                    } else if ((fila_o + 2) == fila_d) {
                        //derecha
                        if ((columna_o + 1) == columna_d) {
                            if (buscar_en(fila_o + 1, columna_o + 1)) return true;
                        }
                        //izquierda
                        if ((columna_o - 1) == columna_d) {
                            if (buscar_en(fila_o + 1, columna_o)) return true;
                        }
                    }
                    /////////////////                    
                }
            }
            // en fila impar
            else{
                //para mover 1 espacio
                if (    ((fila_o+1)==fila_d) || ((fila_o-1)==fila_d)   ){
                    if (    ((columna_o-1)==columna_d) || (columna_o==columna_d)  ){                    
                        return true;
                    }
                }else{
                    //para saltar arriba
                    if ((fila_o-2)==fila_d){
                        //derecha
                        if (    ((columna_o+1)==columna_d) ){ 
                            if(buscar_en(fila_o-1,columna_o)) return true;
                        }
                        //izquierda
                        if (    ((columna_o-1)==columna_d) ){
                            if(buscar_en(fila_o-1,columna_o-1)) return true;
                        }
                     //para saltar abajo
                    }else if ((fila_o+2)==fila_d){
                        //derecha
                        if (    ((columna_o+1)==columna_d) ){ 
                            if(buscar_en(fila_o+1,columna_o)) return true;
                        }
                        //izquierda
                        if (    ((columna_o-1)==columna_d) ){
                            if(buscar_en(fila_o+1,columna_o-1)) return true;
                        }
                    }
                    /////////////////
                }
            }
        }
        return false;
    }
   
    public void terminar_t(){
        String spiezas="";
        String stablero="";
        
        cambio_t();
        //recorrido de tablero y posicion de piezas para envio
        for (int rp=0;rp<60;rp++){
            spiezas = spiezas + piezas[rp]+";";
        }
        for (int rt=0;rt<17;rt++){
            for (int rt2=0;rt2<13;rt2++){
                stablero = stablero + tablero[rt][rt2]+";";
            }
        }        
        //envio de matriz
        try {
            skClient = new Socket(HOST, puerto_envio);
            salida = new DataOutputStream(skClient.getOutputStream());
            salida.writeUTF(spiezas);
            salida.writeUTF(stablero);
            salida.writeUTF(bitacora.get(bitacora.size()-1));
            salida.writeInt(nturno);            
            skClient.close();            
            

        } catch (UnknownHostException ex) {
            Logger.getLogger(gui_pr3_ia1.class.getName()).log(Level.SEVERE, null, ex);                
        } catch (IOException ex) {
            Logger.getLogger(gui_pr3_ia1.class.getName()).log(Level.SEVERE, null, ex);
        }
        //verificar ganador
        if(verificar_g(jugador)){
            this.lbl_ganador.setText("Gana J"+String.valueOf(jugador));
            JOptionPane.showMessageDialog(this, "Gana J"+String.valueOf(jugador));
        }
    }
    
    public void cambio_t(){
        //cambio de turno
        if (turno==1){
            turno=2;
            this.lbl_turno.setForeground(Color.blue);
            this.lbl_turno.setText("J2");
        }else{ 
            turno=1;
            this.lbl_turno.setForeground(Color.red);
            this.lbl_turno.setText("J1");            
        }
    }
    
    public void actualizar_t(String posiciones_a,String tablero_a, String bit, int ntur){
        cambio_t();
        String pact[] = posiciones_a.split(";");
        System.arraycopy(pact, 0, piezas, 0, 60);
        
        for(int p=0;p<60;p++){
            String[] pos = piezas[p].split(",");
            int f = Integer.valueOf(pos[0]);
            int c = Integer.valueOf(pos[1]);
            piezas_f[p].setLocation(tablero_f[f-1][c-1].getLocation());
        }
        
        String tact[] = tablero_a.split(";");
        for (int f=0;f<17;f++){
            for (int c=0;c<13;c++){
                tablero[f][c]=tact[(f*13)+c];
            }
        }        
        bitacora.add(bit);
        nturno = ntur+1;
        if (this.cmb_tipojuego.getSelectedIndex()==1&&turno==2) pc(2);        
        if (this.cmb_tipojuego.getSelectedIndex()==2&&turno==1) pc(1);else pc(2);
    }
    
    public boolean verificar_g(int nojugador){
        int cantf=this.cmb_fichas.getSelectedIndex();
        if (cantf==0){
            if (jugador==2){
                if(tablero[0][6].equals("2"))
                if(tablero[1][5].equals("2"))
                if(tablero[1][6].equals("2"))
                if(tablero[2][5].equals("2"))
                if(tablero[2][6].equals("2"))
                if(tablero[2][7].equals("2"))
                if(tablero[3][4].equals("2"))
                if(tablero[3][5].equals("2"))
                if(tablero[3][6].equals("2"))
                if(tablero[3][7].equals("2"))
                    return true;
            }else{
                if(tablero[13][4].equals("1"))
                if(tablero[13][5].equals("1"))
                if(tablero[13][6].equals("1"))
                if(tablero[13][7].equals("1"))
                if(tablero[14][5].equals("1"))
                if(tablero[14][6].equals("1"))
                if(tablero[14][7].equals("1"))
                if(tablero[15][5].equals("1"))
                if(tablero[15][6].equals("1"))
                if(tablero[16][6].equals("1")) 
                    return true;
            }
        }
        if (cantf==1){
            if (jugador==2){
                if(tablero[0][6].equals("2"))
                if(tablero[1][5].equals("2"))
                if(tablero[1][6].equals("2"))
                if(tablero[2][5].equals("2"))
                if(tablero[2][6].equals("2"))
                if(tablero[2][7].equals("2"))
                if(tablero[3][4].equals("2"))
                if(tablero[3][5].equals("2"))
                if(tablero[3][6].equals("2"))
                if(tablero[3][7].equals("2"))
                if(tablero[4][9].equals("2"))
                if(tablero[4][10].equals("2"))
                if(tablero[4][11].equals("2"))
                if(tablero[4][12].equals("2"))
                if(tablero[5][9].equals("2"))
                if(tablero[5][10].equals("2"))
                if(tablero[5][11].equals("2"))
                if(tablero[6][10].equals("2"))
                if(tablero[6][11].equals("2"))
                if(tablero[7][10].equals("2"))
                    return true;
            }else{
                if(tablero[13][4].equals("1"))
                if(tablero[13][5].equals("1"))
                if(tablero[13][6].equals("1"))
                if(tablero[13][7].equals("1"))
                if(tablero[14][5].equals("1"))
                if(tablero[14][6].equals("1"))
                if(tablero[14][7].equals("1"))
                if(tablero[15][5].equals("1"))
                if(tablero[15][6].equals("1"))
                if(tablero[16][6].equals("1"))
                if(tablero[9][1].equals("1"))
                if(tablero[10][1].equals("1"))
                if(tablero[10][2].equals("1"))
                if(tablero[11][0].equals("1"))
                if(tablero[11][1].equals("1"))
                if(tablero[11][2].equals("1"))
                if(tablero[12][0].equals("1"))
                if(tablero[12][1].equals("1"))
                if(tablero[12][2].equals("1"))
                if(tablero[12][3].equals("1"))
                    return true;
            }
        }
        if (cantf==2){
            if (jugador==2){
                if(tablero[0][6].equals("2"))
                if(tablero[1][5].equals("2"))
                if(tablero[1][6].equals("2"))
                if(tablero[2][5].equals("2"))
                if(tablero[2][6].equals("2"))
                if(tablero[2][7].equals("2"))
                if(tablero[3][4].equals("2"))
                if(tablero[3][5].equals("2"))
                if(tablero[3][6].equals("2"))
                if(tablero[3][7].equals("2"))
                if(tablero[4][9].equals("2"))
                if(tablero[4][10].equals("2"))
                if(tablero[4][11].equals("2"))
                if(tablero[4][12].equals("2"))
                if(tablero[5][9].equals("2"))
                if(tablero[5][10].equals("2"))
                if(tablero[5][11].equals("2"))
                if(tablero[6][10].equals("2"))
                if(tablero[6][11].equals("2"))
                if(tablero[7][10].equals("2"))          
                if(tablero[4][0].equals("2"))
                if(tablero[4][1].equals("2"))
                if(tablero[4][2].equals("2"))
                if(tablero[4][3].equals("2"))
                if(tablero[5][0].equals("2"))
                if(tablero[5][1].equals("2"))
                if(tablero[5][2].equals("2"))
                if(tablero[6][1].equals("2"))
                if(tablero[6][2].equals("2"))
                if(tablero[7][1].equals("2"))
                    return true;
            }else{
                if(tablero[13][4].equals("1"))
                if(tablero[13][5].equals("1"))
                if(tablero[13][6].equals("1"))
                if(tablero[13][7].equals("1"))
                if(tablero[14][5].equals("1"))
                if(tablero[14][6].equals("1"))
                if(tablero[14][7].equals("1"))
                if(tablero[15][5].equals("1"))
                if(tablero[15][6].equals("1"))
                if(tablero[16][6].equals("1"))
                if(tablero[9][1].equals("1"))
                if(tablero[10][1].equals("1"))
                if(tablero[10][2].equals("1"))
                if(tablero[11][0].equals("1"))
                if(tablero[11][1].equals("1"))
                if(tablero[11][2].equals("1"))
                if(tablero[12][0].equals("1"))
                if(tablero[12][1].equals("1"))
                if(tablero[12][2].equals("1"))
                if(tablero[12][3].equals("1"))
                if(tablero[9][10].equals("1"))
                if(tablero[10][10].equals("1"))
                if(tablero[10][11].equals("1"))
                if(tablero[11][9].equals("1"))
                if(tablero[11][10].equals("1"))
                if(tablero[11][2].equals("1"))
                if(tablero[12][9].equals("1"))
                if(tablero[12][10].equals("1"))
                if(tablero[11][2].equals("1"))
                if(tablero[12][12].equals("1"))
                    return true;
            }

           
        }
        return false;
    }
    
    public void iniciar_detener(){
        if (this.btn2_juego.isSelected()){
            //Iniciar el Juego              
            iniciar_logico(this.cmb_fichas.getSelectedIndex());
            this.btn2_juego.setText("Detener Juego");
            this.pnl_tablero.setVisible(true);            
            this.cmb_jugador.setEnabled(false);
            this.cmb_fichas.setEnabled(false);
            this.cmb_tipojuego.setEnabled(false);
            
            if (this.cmb_jugador.getSelectedIndex()==0){
                puerto_recepcion=5000;
                puerto_envio=5001;
                if (!hilosk.isAlive()){                                        
                        hilosk.PUERTO = puerto_recepcion;   
                        hilosk.start();                                                   
                }
                if(this.cmb_tipojuego.getSelectedIndex()==2) pc(1);
            }else{
                puerto_recepcion=5001;
                puerto_envio=5000;
                if (!hilosk.isAlive()){
                    hilosk.PUERTO = puerto_recepcion;
                    hilosk.start();
                }                                  
            }
        }else{
            //Detener el Juego
            this.btn2_juego.setText("Iniciar Juego");            
            this.pnl_tablero.setVisible(false);
            this.cmb_jugador.setEnabled(true);
            this.cmb_fichas.setEnabled(true);
            this.cmb_tipojuego.setEnabled(true);
//            if (this.cmb_jugador.getSelectedIndex()==0){
//               
//            }else{
//
//            }
        }
    }
    
    public void pc(int njg){
        arbolmm=new Nodo(null,tablero,piezas,0,0);
        generar_arbol(arbolmm,njg,Integer.valueOf(this.cmb_fichas.getSelectedItem().toString()),tablero,piezas);
        boolean tipoalg;
        if(this.cmb_modoalg.getSelectedIndex()==0)tipoalg=true;else tipoalg=false;
        calcular_minmax(tipoalg,arbolmm,njg);
        realizar_jugada(tipoalg);
    }
    
    public void generar_arbol(Nodo p,int nj,int cp,String[][] tab,String[] pzs){        
        
        int simple_par[][] = { {0,1},{0,-1},{-1,1},{-1,0},{1,1},{1,0} };
        int simple_impar[][] = { {0,1},{0,-1},{-1,0},{-1,-1},{1,0},{1,-1} };
        int iniciop;
        if(nj==1)iniciop=0;else iniciop=30;
        for(int pz=iniciop;pz<(iniciop+cp);pz++){
        //for(int pz=30;pz<60;pz++){
            String[] pos = pzs[pz].split(",");
            int f = Integer.valueOf(pos[0]);
            int c = Integer.valueOf(pos[1]);
            
            int mov[][];

            if (f % 2 == 0) {
                mov = simple_par;
            } else {
                mov = simple_impar;
            }
            for (int i = 0; i < mov.length; i++) {
                int f_d = f + mov[i][0];
                int c_d = c + mov[i][1];
                if (validar(f_d, c_d, f, c) && !buscar_en(f_d, c_d)) {
                    String[][] tabtemp = new String[tab.length][];
                    for (int j = 0; j < tab.length; j++) {
                        tabtemp[j] = tab[j].clone();
                    }
                    tabtemp[f - 1][c - 1] = "0";
                    tabtemp[f_d - 1][c_d - 1] = String.valueOf(nj);                    
                    String[] piezatemp = pzs.clone();
                    piezatemp[pz] = String.valueOf(f_d) + "," + String.valueOf(c_d);
                    Nodo hij = new Nodo(p, tabtemp, piezatemp, 0, 0);
                    hij.cambio = "O("+f+","+c+"); O("+f_d+","+c_d+");";
                    p.hijos.add(hij);                    
                }
            }
            //saltos
            ArrayList<String> visitadas = new ArrayList();            
            saltos(f, c, p, nj, tab, pzs, pz, visitadas);
           
        }
    
                }
    
    public void saltos(int fila_o, int columna_o, Nodo p,int nj,String[][] tab,String[] pzs, int pz, ArrayList<String> visitadas){
        //der, izq, arriba der, arriba izq, abajo der, abajo izq
        int mov[][] = {{0, 2}, {0, -2}, {-2, 1}, {-2, -1}, {2, 1}, {2, -1}};
        visitadas.add(fila_o + "," + columna_o);
        for (int i = 0; i < mov.length; i++) {
            int fila_d = fila_o + mov[i][0];
            int columna_d = columna_o + mov[i][1];
            String pos = fila_d + "," + columna_d;
            if (validar(fila_d, columna_d, fila_o, columna_o) && !buscar_en(fila_d, columna_d) && !visitadas.contains(pos)) {
                String[][] tabtemp = new String[tab.length][];
                for (int j = 0; j < tab.length; j++) {
                   tabtemp[j] = tab[j].clone();
                }
                tabtemp[fila_o - 1][columna_o - 1] = "0";
                tabtemp[fila_d - 1][columna_d - 1] = String.valueOf(nj);
                String[] piezatemp = pzs.clone();
                piezatemp[pz] = String.valueOf(fila_d) + "," + String.valueOf(columna_d);
                Nodo hij = new Nodo(p, tabtemp, piezatemp, 0, 0);
                for(String v : visitadas)
                hij.cambio += "O(" + v + "); ";
                hij.cambio += "O(" + pos + ");";
                p.hijos.add(hij);
                saltos(fila_d, columna_d, p, nj, tabtemp, piezatemp, pz, visitadas);                
            }            
        }    
        visitadas.remove(fila_o + "," + columna_o);
    }
    
    public int heuristica(String[][] tab,int njg){
        int valor=0;
        //heuristica para 10 piezas
        //if(this.cmb_fichas.getSelectedIndex()==0){
            for(int ff=0;ff<17;ff++){
                for(int cc=0;cc<13;cc++){
                    if (tab[ff][cc].equals(String.valueOf(njg))) valor=valor+ff;
                    if (cc<7) valor=valor+cc;else valor=valor-(cc-6);
                }
            }
            if(njg==1){
                return valor;
            }else{
                valor = 390 - valor;
                return valor;
            }     
        //}
        //heuristica para 20 piezas
//        if(this.cmb_fichas.getSelectedIndex()==1){
//            
//        }
//        //heuristica para 30 piezas
//        if(this.cmb_fichas.getSelectedIndex()==2){
//            
//        }

        //        int valor=0;
//        for(int ff=0;ff<17;ff++){
//            for(int cc=0;cc<13;cc++){
//                if (tab[ff][cc].equals(String.valueOf(njg))) valor=valor+ff;
//            }
//        }
//        if(njg==1){
//            
//            return valor;
//        }else{
//            valor = 390 - valor;
//            return valor;
//        }    
        //return 0;
    }
    
    public Nodo max_min(Nodo t,boolean tipo){  
        if(tipo){
        Nodo nmax=new Nodo(-1);
        for (Nodo h : t.hijos){
            if (h.valor>nmax.valor){
                nmax = h;
            }
                    }
        return nmax;}else{
            Nodo nmin=new Nodo(-1);
        for (Nodo h : t.hijos){
            if (h.valor<nmin.valor){
                nmin = h;
            }
        }
        return nmin;
        }
    }
                
    public void realizar_jugada(boolean tipo){ 
        Nodo temp = max_min(arbolmm,tipo);
        tablero = temp.tablero;
        piezas = temp.piezas;        
        for(int p=0;p<60;p++){
            String[] pos = piezas[p].split(",");
            int f = Integer.valueOf(pos[0]);
            int c = Integer.valueOf(pos[1]);
            if (piezas_f[p].getLocation().x != (tablero_f[f-1][c-1].getLocation().x) || piezas_f[p].getLocation().y != (tablero_f[f-1][c-1].getLocation().y)) {
                ///agregar a bitacora
                bitacora.add(String.valueOf(nturno)+" --- JUGADOR: "+String.valueOf(turno) +" --- "+piezas_f[p].getName()+" - "+ temp.cambio );                
            }
            piezas_f[p].setLocation(tablero_f[f-1][c-1].getLocation());            
        }        
        terminar_t();
    }
    
    public void calcular_minmax(boolean tipo, Nodo ul,int jugador){
        for(Nodo calculo: ul.hijos ){
            //if(calculo.valor==0){
            if(!calculo.hijos.isEmpty()){
                tipo=!tipo;
                calcular_minmax(tipo,calculo,jugador);
                 max_min(calculo,tipo);
                
            }else{
                calculo.valor=heuristica(calculo.tablero,jugador);
            }//sino que regrese a calcular
        }
    }
    
    public boolean crearPDF(String path) {
         try {
             Calendar calendario = Calendar.getInstance();
             int hora = calendario.get(Calendar.HOUR_OF_DAY);
             int minutos = calendario.get(Calendar.MINUTE);
             int segundos = calendario.get(Calendar.SECOND);             
             OutputStream file = new FileOutputStream(new File(path + "\\BITACORA_" + String.format("%1$2s", hora).replace(" ", "0") + "-" + String.format("%1$2s", minutos).replace(" ", "0") + "-" + String.format("%1$2s", segundos).replace(" ", "0") + ".pdf"));

             Document document = new Document();
             PdfWriter.getInstance(document, file);
             document.open();
             document.add(new Paragraph("TURNO --- JUGADOR --- MOVIMIENTO"));
             //lectura de bitacora
            for (String log : bitacora) {
                document.add(new Paragraph(log));
                //document.newPage();
            }
            ///////////////
             document.close();
             file.close();
             return true;
         } catch (Exception e) {
             return false;
         }
    }
         
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        guardarBitacora = new javax.swing.JDialog();
        jLabel7 = new javax.swing.JLabel();
        txtDir = new javax.swing.JTextField();
        btnSeleccionarDir = new javax.swing.JButton();
        btnGuardarBitacora = new javax.swing.JButton();
        fcBitacora = new javax.swing.JFileChooser();
        cmb_fichas = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        cmb_tipojuego = new javax.swing.JComboBox();
        jLabel3 = new javax.swing.JLabel();
        cmb_jugador = new javax.swing.JComboBox();
        pnl_tablero = new javax.swing.JPanel();
        j1_1 = new javax.swing.JLabel();
        j1_2 = new javax.swing.JLabel();
        j1_3 = new javax.swing.JLabel();
        j1_4 = new javax.swing.JLabel();
        j1_5 = new javax.swing.JLabel();
        j1_6 = new javax.swing.JLabel();
        j1_7 = new javax.swing.JLabel();
        j1_8 = new javax.swing.JLabel();
        j1_9 = new javax.swing.JLabel();
        j1_10 = new javax.swing.JLabel();
        j1_11 = new javax.swing.JLabel();
        j1_12 = new javax.swing.JLabel();
        j1_13 = new javax.swing.JLabel();
        j1_14 = new javax.swing.JLabel();
        j1_15 = new javax.swing.JLabel();
        j1_16 = new javax.swing.JLabel();
        j1_17 = new javax.swing.JLabel();
        j1_18 = new javax.swing.JLabel();
        j1_19 = new javax.swing.JLabel();
        j1_20 = new javax.swing.JLabel();
        j1_21 = new javax.swing.JLabel();
        j1_22 = new javax.swing.JLabel();
        j1_23 = new javax.swing.JLabel();
        j1_24 = new javax.swing.JLabel();
        j1_25 = new javax.swing.JLabel();
        j1_26 = new javax.swing.JLabel();
        j1_27 = new javax.swing.JLabel();
        j1_28 = new javax.swing.JLabel();
        j1_29 = new javax.swing.JLabel();
        j1_30 = new javax.swing.JLabel();
        j2_1 = new javax.swing.JLabel();
        j2_2 = new javax.swing.JLabel();
        j2_3 = new javax.swing.JLabel();
        j2_4 = new javax.swing.JLabel();
        j2_5 = new javax.swing.JLabel();
        j2_6 = new javax.swing.JLabel();
        j2_7 = new javax.swing.JLabel();
        j2_8 = new javax.swing.JLabel();
        j2_9 = new javax.swing.JLabel();
        j2_10 = new javax.swing.JLabel();
        j2_11 = new javax.swing.JLabel();
        j2_12 = new javax.swing.JLabel();
        j2_13 = new javax.swing.JLabel();
        j2_14 = new javax.swing.JLabel();
        j2_15 = new javax.swing.JLabel();
        j2_16 = new javax.swing.JLabel();
        j2_17 = new javax.swing.JLabel();
        j2_18 = new javax.swing.JLabel();
        j2_19 = new javax.swing.JLabel();
        j2_20 = new javax.swing.JLabel();
        j2_21 = new javax.swing.JLabel();
        j2_22 = new javax.swing.JLabel();
        j2_23 = new javax.swing.JLabel();
        j2_24 = new javax.swing.JLabel();
        j2_25 = new javax.swing.JLabel();
        j2_26 = new javax.swing.JLabel();
        j2_27 = new javax.swing.JLabel();
        j2_28 = new javax.swing.JLabel();
        j2_29 = new javax.swing.JLabel();
        j2_30 = new javax.swing.JLabel();
        t0107 = new javax.swing.JLabel();
        t0206 = new javax.swing.JLabel();
        t0207 = new javax.swing.JLabel();
        t0306 = new javax.swing.JLabel();
        t0307 = new javax.swing.JLabel();
        t0308 = new javax.swing.JLabel();
        t0405 = new javax.swing.JLabel();
        t0406 = new javax.swing.JLabel();
        t0407 = new javax.swing.JLabel();
        t0408 = new javax.swing.JLabel();
        t0501 = new javax.swing.JLabel();
        t0502 = new javax.swing.JLabel();
        t0503 = new javax.swing.JLabel();
        t0504 = new javax.swing.JLabel();
        t0505 = new javax.swing.JLabel();
        t0506 = new javax.swing.JLabel();
        t0507 = new javax.swing.JLabel();
        t0508 = new javax.swing.JLabel();
        t0509 = new javax.swing.JLabel();
        t0510 = new javax.swing.JLabel();
        t0511 = new javax.swing.JLabel();
        t0512 = new javax.swing.JLabel();
        t0513 = new javax.swing.JLabel();
        t0601 = new javax.swing.JLabel();
        t0602 = new javax.swing.JLabel();
        t0603 = new javax.swing.JLabel();
        t0604 = new javax.swing.JLabel();
        t0605 = new javax.swing.JLabel();
        t0606 = new javax.swing.JLabel();
        t0607 = new javax.swing.JLabel();
        t0608 = new javax.swing.JLabel();
        t0609 = new javax.swing.JLabel();
        t0610 = new javax.swing.JLabel();
        t0611 = new javax.swing.JLabel();
        t0612 = new javax.swing.JLabel();
        t0702 = new javax.swing.JLabel();
        t0703 = new javax.swing.JLabel();
        t0704 = new javax.swing.JLabel();
        t0705 = new javax.swing.JLabel();
        t0706 = new javax.swing.JLabel();
        t0707 = new javax.swing.JLabel();
        t0708 = new javax.swing.JLabel();
        t0709 = new javax.swing.JLabel();
        t0710 = new javax.swing.JLabel();
        t0711 = new javax.swing.JLabel();
        t0712 = new javax.swing.JLabel();
        t0802 = new javax.swing.JLabel();
        t0803 = new javax.swing.JLabel();
        t0804 = new javax.swing.JLabel();
        t0805 = new javax.swing.JLabel();
        t0806 = new javax.swing.JLabel();
        t0807 = new javax.swing.JLabel();
        t0808 = new javax.swing.JLabel();
        t0809 = new javax.swing.JLabel();
        t0810 = new javax.swing.JLabel();
        t0811 = new javax.swing.JLabel();
        t0903 = new javax.swing.JLabel();
        t0904 = new javax.swing.JLabel();
        t0905 = new javax.swing.JLabel();
        t0906 = new javax.swing.JLabel();
        t0907 = new javax.swing.JLabel();
        t0908 = new javax.swing.JLabel();
        t0909 = new javax.swing.JLabel();
        t0910 = new javax.swing.JLabel();
        t0911 = new javax.swing.JLabel();
        t1002 = new javax.swing.JLabel();
        t1003 = new javax.swing.JLabel();
        t1004 = new javax.swing.JLabel();
        t1005 = new javax.swing.JLabel();
        t1006 = new javax.swing.JLabel();
        t1007 = new javax.swing.JLabel();
        t1008 = new javax.swing.JLabel();
        t1009 = new javax.swing.JLabel();
        t1010 = new javax.swing.JLabel();
        t1011 = new javax.swing.JLabel();
        t1102 = new javax.swing.JLabel();
        t1103 = new javax.swing.JLabel();
        t1104 = new javax.swing.JLabel();
        t1105 = new javax.swing.JLabel();
        t1106 = new javax.swing.JLabel();
        t1107 = new javax.swing.JLabel();
        t1108 = new javax.swing.JLabel();
        t1109 = new javax.swing.JLabel();
        t1110 = new javax.swing.JLabel();
        t1111 = new javax.swing.JLabel();
        t1112 = new javax.swing.JLabel();
        t1201 = new javax.swing.JLabel();
        t1202 = new javax.swing.JLabel();
        t1203 = new javax.swing.JLabel();
        t1204 = new javax.swing.JLabel();
        t1205 = new javax.swing.JLabel();
        t1206 = new javax.swing.JLabel();
        t1207 = new javax.swing.JLabel();
        t1208 = new javax.swing.JLabel();
        t1209 = new javax.swing.JLabel();
        t1210 = new javax.swing.JLabel();
        t1211 = new javax.swing.JLabel();
        t1212 = new javax.swing.JLabel();
        t1301 = new javax.swing.JLabel();
        t1302 = new javax.swing.JLabel();
        t1303 = new javax.swing.JLabel();
        t1304 = new javax.swing.JLabel();
        t1305 = new javax.swing.JLabel();
        t1306 = new javax.swing.JLabel();
        t1307 = new javax.swing.JLabel();
        t1308 = new javax.swing.JLabel();
        t1309 = new javax.swing.JLabel();
        t1310 = new javax.swing.JLabel();
        t1311 = new javax.swing.JLabel();
        t1312 = new javax.swing.JLabel();
        t1313 = new javax.swing.JLabel();
        t1405 = new javax.swing.JLabel();
        t1406 = new javax.swing.JLabel();
        t1407 = new javax.swing.JLabel();
        t1408 = new javax.swing.JLabel();
        t1506 = new javax.swing.JLabel();
        t1507 = new javax.swing.JLabel();
        t1508 = new javax.swing.JLabel();
        t1606 = new javax.swing.JLabel();
        t1607 = new javax.swing.JLabel();
        t1707 = new javax.swing.JLabel();
        lbl_tablero = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        lbl_turno = new javax.swing.JLabel();
        btn_termniart = new javax.swing.JButton();
        lbl_ganador = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel5 = new javax.swing.JLabel();
        cmb_modoalg = new javax.swing.JComboBox();
        btn2_juego = new javax.swing.JToggleButton();
        menu = new javax.swing.JMenuBar();
        menuBitacora = new javax.swing.JMenu();
        menuGuardarB = new javax.swing.JMenuItem();

        guardarBitacora.setTitle("Guardar Bitácora");
        guardarBitacora.setModal(true);

        jLabel7.setText("Directorio:");

        txtDir.setEditable(false);

        btnSeleccionarDir.setText("...");
        btnSeleccionarDir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSeleccionarDirActionPerformed(evt);
            }
        });

        btnGuardarBitacora.setText("Guardar");
        btnGuardarBitacora.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarBitacoraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout guardarBitacoraLayout = new javax.swing.GroupLayout(guardarBitacora.getContentPane());
        guardarBitacora.getContentPane().setLayout(guardarBitacoraLayout);
        guardarBitacoraLayout.setHorizontalGroup(
            guardarBitacoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(guardarBitacoraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(guardarBitacoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(guardarBitacoraLayout.createSequentialGroup()
                        .addComponent(txtDir)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnSeleccionarDir, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(btnGuardarBitacora, javax.swing.GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE))
                .addContainerGap())
        );
        guardarBitacoraLayout.setVerticalGroup(
            guardarBitacoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(guardarBitacoraLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(guardarBitacoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(txtDir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSeleccionarDir))
                .addGap(18, 18, 18)
                .addComponent(btnGuardarBitacora)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        fcBitacora.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG);
        fcBitacora.setDialogTitle("Directorio Bitácora");
        fcBitacora.setFileSelectionMode(javax.swing.JFileChooser.DIRECTORIES_ONLY);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(710, 590));
        setPreferredSize(new java.awt.Dimension(710, 590));
        setResizable(false);
        getContentPane().setLayout(null);

        cmb_fichas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "10", "20", "30" }));
        cmb_fichas.setSelectedIndex(2);
        cmb_fichas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmb_fichasActionPerformed(evt);
            }
        });
        getContentPane().add(cmb_fichas);
        cmb_fichas.setBounds(642, 33, 50, 22);

        jLabel1.setText("Numereo de Fichas");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(464, 37, 110, 14);

        jLabel2.setText("Tipo de Juego");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(464, 70, 80, 14);

        cmb_tipojuego.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Humano vrs Humano", "PC vrs Humano", "PC vrs PC" }));
        cmb_tipojuego.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmb_tipojuegoActionPerformed(evt);
            }
        });
        getContentPane().add(cmb_tipojuego);
        cmb_tipojuego.setBounds(552, 66, 140, 22);

        jLabel3.setText("Jugador");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(464, 126, 80, 14);

        cmb_jugador.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2" }));
        cmb_jugador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmb_jugadorActionPerformed(evt);
            }
        });
        getContentPane().add(cmb_jugador);
        cmb_jugador.setBounds(660, 122, 32, 22);

        pnl_tablero.setBackground(new java.awt.Color(255, 255, 255));
        pnl_tablero.setLayout(null);

        j1_1.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_1.setName("J1_1");
        j1_1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_1MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_1);
        j1_1.setBounds(200, 0, 26, 30);

        j1_2.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_2.setDoubleBuffered(true);
        j1_2.setName("J1_2");
        j1_2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_2MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_2);
        j1_2.setBounds(190, 30, 26, 30);

        j1_3.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_3.setDoubleBuffered(true);
        j1_3.setName("J1_3");
        j1_3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_3MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_3);
        j1_3.setBounds(220, 30, 26, 30);

        j1_4.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_4.setDoubleBuffered(true);
        j1_4.setName("J1_4");
        j1_4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_4MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_4);
        j1_4.setBounds(170, 60, 26, 30);

        j1_5.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_5.setDoubleBuffered(true);
        j1_5.setName("J1_5");
        j1_5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_5MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_5);
        j1_5.setBounds(200, 60, 26, 30);

        j1_6.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_6.setDoubleBuffered(true);
        j1_6.setName("J1_6");
        j1_6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_6MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_6);
        j1_6.setBounds(230, 60, 26, 30);

        j1_7.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_7.setDoubleBuffered(true);
        j1_7.setName("J1_7");
        j1_7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_7MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_7);
        j1_7.setBounds(160, 90, 26, 30);

        j1_8.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_8.setDoubleBuffered(true);
        j1_8.setName("J1_8");
        j1_8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_8MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_8);
        j1_8.setBounds(190, 90, 26, 30);

        j1_9.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_9.setDoubleBuffered(true);
        j1_9.setName("J1_9");
        j1_9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_9MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_9);
        j1_9.setBounds(220, 90, 26, 30);

        j1_10.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_10.setDoubleBuffered(true);
        j1_10.setName("J1_10");
        j1_10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_10MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_10);
        j1_10.setBounds(250, 90, 26, 30);

        j1_11.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_11.setDoubleBuffered(true);
        j1_11.setName("J1_11");
        j1_11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_11MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_11);
        j1_11.setBounds(290, 120, 26, 30);

        j1_12.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_12.setDoubleBuffered(true);
        j1_12.setName("J1_12");
        j1_12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_12MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_12);
        j1_12.setBounds(320, 120, 26, 30);

        j1_13.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_13.setDoubleBuffered(true);
        j1_13.setName("J1_13");
        j1_13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_13MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_13);
        j1_13.setBounds(350, 120, 26, 30);

        j1_14.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_14.setDoubleBuffered(true);
        j1_14.setName("J1_14");
        j1_14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_14MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_14);
        j1_14.setBounds(380, 120, 26, 30);

        j1_15.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_15.setDoubleBuffered(true);
        j1_15.setName("J1_15");
        j1_15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_15MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_15);
        j1_15.setBounds(310, 150, 26, 30);

        j1_16.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_16.setDoubleBuffered(true);
        j1_16.setName("J1_16");
        j1_16.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_16MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_16);
        j1_16.setBounds(340, 150, 26, 30);

        j1_17.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_17.setDoubleBuffered(true);
        j1_17.setName("J1_17");
        j1_17.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_17MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_17);
        j1_17.setBounds(370, 150, 26, 30);

        j1_18.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_18.setDoubleBuffered(true);
        j1_18.setName("J1_18");
        j1_18.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_18MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_18);
        j1_18.setBounds(320, 180, 26, 30);

        j1_19.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_19.setDoubleBuffered(true);
        j1_19.setName("J1_19");
        j1_19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_19MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_19);
        j1_19.setBounds(350, 180, 26, 30);

        j1_20.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_20.setDoubleBuffered(true);
        j1_20.setName("J1_20");
        j1_20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_20MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_20);
        j1_20.setBounds(340, 210, 26, 30);

        j1_21.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_21.setDoubleBuffered(true);
        j1_21.setName("J1_21");
        j1_21.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_21MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_21);
        j1_21.setBounds(20, 120, 26, 30);

        j1_22.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_22.setDoubleBuffered(true);
        j1_22.setName("J1_22");
        j1_22.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_22MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_22);
        j1_22.setBounds(50, 120, 26, 30);

        j1_23.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_23.setDoubleBuffered(true);
        j1_23.setName("J1_23");
        j1_23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_23MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_23);
        j1_23.setBounds(80, 120, 26, 30);

        j1_24.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_24.setDoubleBuffered(true);
        j1_24.setName("J1_24");
        j1_24.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_24MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_24);
        j1_24.setBounds(110, 120, 26, 30);

        j1_25.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_25.setDoubleBuffered(true);
        j1_25.setName("J1_25");
        j1_25.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_25MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_25);
        j1_25.setBounds(40, 150, 26, 30);

        j1_26.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_26.setDoubleBuffered(true);
        j1_26.setName("J1_26");
        j1_26.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_26MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_26);
        j1_26.setBounds(70, 150, 26, 30);

        j1_27.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_27.setDoubleBuffered(true);
        j1_27.setName("J1_27");
        j1_27.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_27MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_27);
        j1_27.setBounds(100, 150, 26, 30);

        j1_28.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_28.setDoubleBuffered(true);
        j1_28.setName("J1_28");
        j1_28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_28MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_28);
        j1_28.setBounds(50, 180, 26, 30);

        j1_29.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_29.setDoubleBuffered(true);
        j1_29.setName("J1_29");
        j1_29.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_29MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_29);
        j1_29.setBounds(80, 180, 26, 30);

        j1_30.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j1_30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/rj4.png"))); // NOI18N
        j1_30.setDoubleBuffered(true);
        j1_30.setName("J1_30");
        j1_30.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j1_30MouseClicked(evt);
            }
        });
        pnl_tablero.add(j1_30);
        j1_30.setBounds(70, 210, 26, 30);

        j2_1.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_1.setDoubleBuffered(true);
        j2_1.setName("J2_1");
        j2_1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_1MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_1);
        j2_1.setBounds(200, 480, 26, 30);

        j2_2.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_2.setDoubleBuffered(true);
        j2_2.setName("J2_2");
        j2_2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_2MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_2);
        j2_2.setBounds(190, 450, 26, 30);

        j2_3.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_3.setDoubleBuffered(true);
        j2_3.setName("J2_3");
        j2_3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_3MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_3);
        j2_3.setBounds(220, 450, 26, 30);

        j2_4.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_4.setDoubleBuffered(true);
        j2_4.setName("J2_4");
        j2_4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_4MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_4);
        j2_4.setBounds(170, 420, 26, 30);

        j2_5.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_5.setDoubleBuffered(true);
        j2_5.setName("J2_5");
        j2_5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_5MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_5);
        j2_5.setBounds(200, 420, 26, 30);

        j2_6.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_6.setDoubleBuffered(true);
        j2_6.setName("J2_6");
        j2_6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_6MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_6);
        j2_6.setBounds(230, 420, 26, 30);

        j2_7.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_7.setDoubleBuffered(true);
        j2_7.setName("J2_7");
        j2_7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_7MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_7);
        j2_7.setBounds(160, 390, 26, 30);

        j2_8.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_8.setDoubleBuffered(true);
        j2_8.setName("J2_8");
        j2_8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_8MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_8);
        j2_8.setBounds(190, 390, 26, 30);

        j2_9.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_9.setDoubleBuffered(true);
        j2_9.setName("J2_9");
        j2_9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_9MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_9);
        j2_9.setBounds(220, 390, 26, 30);

        j2_10.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_10.setDoubleBuffered(true);
        j2_10.setName("J2_10");
        j2_10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_10MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_10);
        j2_10.setBounds(250, 390, 26, 30);

        j2_11.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_11.setDoubleBuffered(true);
        j2_11.setName("J2_11");
        j2_11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_11MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_11);
        j2_11.setBounds(20, 360, 26, 30);

        j2_12.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_12.setDoubleBuffered(true);
        j2_12.setName("J2_12");
        j2_12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_12MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_12);
        j2_12.setBounds(50, 360, 26, 30);

        j2_13.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_13.setDoubleBuffered(true);
        j2_13.setName("J2_13");
        j2_13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_13MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_13);
        j2_13.setBounds(80, 360, 26, 30);

        j2_14.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_14.setDoubleBuffered(true);
        j2_14.setName("J2_14");
        j2_14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_14MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_14);
        j2_14.setBounds(110, 360, 26, 30);

        j2_15.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_15.setDoubleBuffered(true);
        j2_15.setName("J2_15");
        j2_15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_15MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_15);
        j2_15.setBounds(40, 330, 26, 30);

        j2_16.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_16.setDoubleBuffered(true);
        j2_16.setName("J2_16");
        j2_16.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_16MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_16);
        j2_16.setBounds(70, 330, 26, 30);

        j2_17.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_17.setDoubleBuffered(true);
        j2_17.setName("J2_17");
        j2_17.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_17MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_17);
        j2_17.setBounds(100, 330, 26, 30);

        j2_18.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_18.setDoubleBuffered(true);
        j2_18.setName("J2_18");
        j2_18.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_18MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_18);
        j2_18.setBounds(50, 300, 26, 30);

        j2_19.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_19.setDoubleBuffered(true);
        j2_19.setName("J2_19");
        j2_19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_19MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_19);
        j2_19.setBounds(80, 300, 26, 30);

        j2_20.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_20.setDoubleBuffered(true);
        j2_20.setName("J2_20");
        j2_20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_20MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_20);
        j2_20.setBounds(70, 270, 26, 30);

        j2_21.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_21.setDoubleBuffered(true);
        j2_21.setName("J2_21");
        j2_21.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_21MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_21);
        j2_21.setBounds(290, 360, 26, 30);

        j2_22.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_22.setDoubleBuffered(true);
        j2_22.setName("J2_22");
        j2_22.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_22MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_22);
        j2_22.setBounds(320, 360, 26, 30);

        j2_23.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_23.setDoubleBuffered(true);
        j2_23.setName("J2_23");
        j2_23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_23MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_23);
        j2_23.setBounds(350, 360, 26, 30);

        j2_24.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_24.setDoubleBuffered(true);
        j2_24.setName("J2_24");
        j2_24.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_24MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_24);
        j2_24.setBounds(380, 360, 26, 30);

        j2_25.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_25.setDoubleBuffered(true);
        j2_25.setName("J2_25");
        j2_25.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_25MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_25);
        j2_25.setBounds(310, 330, 26, 30);

        j2_26.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_26.setDoubleBuffered(true);
        j2_26.setName("J2_26");
        j2_26.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_26MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_26);
        j2_26.setBounds(340, 330, 26, 30);

        j2_27.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_27.setDoubleBuffered(true);
        j2_27.setName("J2_27");
        j2_27.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_27MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_27);
        j2_27.setBounds(370, 330, 26, 30);

        j2_28.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_28.setDoubleBuffered(true);
        j2_28.setName("J2_28");
        j2_28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_28MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_28);
        j2_28.setBounds(320, 300, 26, 30);

        j2_29.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_29.setDoubleBuffered(true);
        j2_29.setName("J2_29");
        j2_29.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_29MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_29);
        j2_29.setBounds(350, 300, 26, 30);

        j2_30.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        j2_30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/az3.png"))); // NOI18N
        j2_30.setDoubleBuffered(true);
        j2_30.setName("J2_30");
        j2_30.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                j2_30MouseClicked(evt);
            }
        });
        pnl_tablero.add(j2_30);
        j2_30.setBounds(340, 270, 26, 30);

        t0107.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0107.setText("O");
        t0107.setDoubleBuffered(true);
        t0107.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0107MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0107);
        t0107.setBounds(200, 0, 25, 30);

        t0206.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0206.setText("O");
        t0206.setDoubleBuffered(true);
        t0206.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0206MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0206);
        t0206.setBounds(190, 30, 25, 30);

        t0207.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0207.setText("O");
        t0207.setDoubleBuffered(true);
        t0207.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0207MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0207);
        t0207.setBounds(220, 30, 25, 30);

        t0306.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0306.setText("O");
        t0306.setDoubleBuffered(true);
        t0306.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0306MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0306);
        t0306.setBounds(170, 60, 25, 30);

        t0307.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0307.setText("O");
        t0307.setDoubleBuffered(true);
        t0307.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0307MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0307);
        t0307.setBounds(200, 60, 25, 30);

        t0308.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0308.setText("O");
        t0308.setDoubleBuffered(true);
        t0308.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0308MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0308);
        t0308.setBounds(230, 60, 25, 30);

        t0405.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0405.setText("O");
        t0405.setDoubleBuffered(true);
        t0405.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0405MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0405);
        t0405.setBounds(160, 90, 25, 30);

        t0406.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0406.setText("O");
        t0406.setDoubleBuffered(true);
        t0406.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0406MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0406);
        t0406.setBounds(190, 90, 25, 30);

        t0407.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0407.setText("O");
        t0407.setDoubleBuffered(true);
        t0407.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0407MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0407);
        t0407.setBounds(220, 90, 25, 30);

        t0408.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0408.setText("O");
        t0408.setDoubleBuffered(true);
        t0408.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0408MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0408);
        t0408.setBounds(250, 90, 25, 30);

        t0501.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0501.setText("O");
        t0501.setDoubleBuffered(true);
        t0501.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0501MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0501);
        t0501.setBounds(20, 120, 25, 30);

        t0502.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0502.setText("O");
        t0502.setDoubleBuffered(true);
        t0502.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0502MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0502);
        t0502.setBounds(50, 120, 25, 30);

        t0503.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0503.setText("O");
        t0503.setDoubleBuffered(true);
        t0503.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0503MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0503);
        t0503.setBounds(80, 120, 25, 30);

        t0504.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0504.setText("O");
        t0504.setDoubleBuffered(true);
        t0504.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0504MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0504);
        t0504.setBounds(110, 120, 25, 30);

        t0505.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0505.setText("O");
        t0505.setDoubleBuffered(true);
        t0505.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0505MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0505);
        t0505.setBounds(140, 120, 25, 30);

        t0506.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0506.setText("O");
        t0506.setDoubleBuffered(true);
        t0506.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0506MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0506);
        t0506.setBounds(170, 120, 25, 30);

        t0507.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0507.setText("O");
        t0507.setDoubleBuffered(true);
        t0507.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0507MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0507);
        t0507.setBounds(200, 120, 25, 30);

        t0508.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0508.setText("O");
        t0508.setDoubleBuffered(true);
        t0508.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0508MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0508);
        t0508.setBounds(230, 120, 25, 30);

        t0509.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0509.setText("O");
        t0509.setDoubleBuffered(true);
        t0509.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0509MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0509);
        t0509.setBounds(260, 120, 25, 30);

        t0510.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0510.setText("O");
        t0510.setDoubleBuffered(true);
        t0510.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0510MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0510);
        t0510.setBounds(290, 120, 25, 30);

        t0511.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0511.setText("O");
        t0511.setDoubleBuffered(true);
        t0511.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0511MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0511);
        t0511.setBounds(320, 120, 25, 30);

        t0512.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0512.setText("O");
        t0512.setDoubleBuffered(true);
        t0512.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0512MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0512);
        t0512.setBounds(350, 120, 25, 30);

        t0513.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0513.setText("O");
        t0513.setDoubleBuffered(true);
        t0513.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0513MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0513);
        t0513.setBounds(380, 120, 25, 30);

        t0601.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0601.setText("O");
        t0601.setDoubleBuffered(true);
        t0601.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0601MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0601);
        t0601.setBounds(40, 150, 25, 30);

        t0602.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0602.setText("O");
        t0602.setDoubleBuffered(true);
        t0602.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0602MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0602);
        t0602.setBounds(70, 150, 25, 30);

        t0603.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0603.setText("O");
        t0603.setDoubleBuffered(true);
        t0603.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0603MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0603);
        t0603.setBounds(100, 150, 25, 30);

        t0604.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0604.setText("O");
        t0604.setDoubleBuffered(true);
        t0604.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0604MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0604);
        t0604.setBounds(130, 150, 25, 30);

        t0605.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0605.setText("O");
        t0605.setDoubleBuffered(true);
        t0605.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0605MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0605);
        t0605.setBounds(160, 150, 25, 30);

        t0606.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0606.setText("O");
        t0606.setDoubleBuffered(true);
        t0606.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0606MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0606);
        t0606.setBounds(190, 150, 25, 30);

        t0607.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0607.setText("O");
        t0607.setDoubleBuffered(true);
        t0607.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0607MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0607);
        t0607.setBounds(220, 150, 25, 30);

        t0608.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0608.setText("O");
        t0608.setDoubleBuffered(true);
        t0608.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0608MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0608);
        t0608.setBounds(250, 150, 25, 30);

        t0609.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0609.setText("O");
        t0609.setDoubleBuffered(true);
        t0609.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0609MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0609);
        t0609.setBounds(280, 150, 25, 30);

        t0610.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0610.setText("O");
        t0610.setDoubleBuffered(true);
        t0610.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0610MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0610);
        t0610.setBounds(310, 150, 25, 30);

        t0611.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0611.setText("O");
        t0611.setDoubleBuffered(true);
        t0611.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0611MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0611);
        t0611.setBounds(340, 150, 25, 30);

        t0612.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0612.setText("O");
        t0612.setDoubleBuffered(true);
        t0612.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0612MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0612);
        t0612.setBounds(370, 150, 25, 30);

        t0702.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0702.setText("O");
        t0702.setDoubleBuffered(true);
        t0702.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0702MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0702);
        t0702.setBounds(50, 180, 25, 30);

        t0703.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0703.setText("O");
        t0703.setDoubleBuffered(true);
        t0703.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0703MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0703);
        t0703.setBounds(80, 180, 25, 30);

        t0704.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0704.setText("O");
        t0704.setDoubleBuffered(true);
        t0704.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0704MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0704);
        t0704.setBounds(110, 180, 25, 30);

        t0705.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0705.setText("O");
        t0705.setDoubleBuffered(true);
        t0705.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0705MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0705);
        t0705.setBounds(140, 180, 25, 30);

        t0706.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0706.setText("O");
        t0706.setDoubleBuffered(true);
        t0706.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0706MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0706);
        t0706.setBounds(170, 180, 25, 30);

        t0707.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0707.setText("O");
        t0707.setDoubleBuffered(true);
        t0707.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0707MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0707);
        t0707.setBounds(200, 180, 25, 30);

        t0708.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0708.setText("O");
        t0708.setDoubleBuffered(true);
        t0708.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0708MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0708);
        t0708.setBounds(230, 180, 25, 30);

        t0709.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0709.setText("O");
        t0709.setDoubleBuffered(true);
        t0709.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0709MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0709);
        t0709.setBounds(260, 180, 25, 30);

        t0710.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0710.setText("O");
        t0710.setDoubleBuffered(true);
        t0710.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0710MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0710);
        t0710.setBounds(290, 180, 25, 30);

        t0711.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0711.setText("O");
        t0711.setDoubleBuffered(true);
        t0711.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0711MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0711);
        t0711.setBounds(320, 180, 25, 30);

        t0712.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0712.setText("O");
        t0712.setDoubleBuffered(true);
        t0712.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0712MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0712);
        t0712.setBounds(350, 180, 25, 30);

        t0802.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0802.setText("O");
        t0802.setDoubleBuffered(true);
        t0802.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0802MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0802);
        t0802.setBounds(70, 210, 25, 30);

        t0803.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0803.setText("O");
        t0803.setDoubleBuffered(true);
        t0803.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0803MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0803);
        t0803.setBounds(100, 210, 25, 30);

        t0804.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0804.setText("O");
        t0804.setDoubleBuffered(true);
        t0804.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0804MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0804);
        t0804.setBounds(130, 210, 25, 30);

        t0805.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0805.setText("O");
        t0805.setDoubleBuffered(true);
        t0805.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0805MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0805);
        t0805.setBounds(160, 210, 25, 30);

        t0806.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0806.setText("O");
        t0806.setDoubleBuffered(true);
        t0806.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0806MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0806);
        t0806.setBounds(190, 210, 25, 30);

        t0807.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0807.setText("O");
        t0807.setDoubleBuffered(true);
        t0807.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0807MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0807);
        t0807.setBounds(220, 210, 25, 30);

        t0808.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0808.setText("O");
        t0808.setDoubleBuffered(true);
        t0808.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0808MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0808);
        t0808.setBounds(250, 210, 25, 30);

        t0809.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0809.setText("O");
        t0809.setDoubleBuffered(true);
        t0809.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0809MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0809);
        t0809.setBounds(280, 210, 25, 30);

        t0810.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0810.setText("O");
        t0810.setDoubleBuffered(true);
        t0810.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0810MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0810);
        t0810.setBounds(310, 210, 25, 30);

        t0811.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0811.setText("O");
        t0811.setDoubleBuffered(true);
        t0811.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0811MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0811);
        t0811.setBounds(340, 210, 25, 30);

        t0903.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0903.setText("O");
        t0903.setDoubleBuffered(true);
        t0903.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0903MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0903);
        t0903.setBounds(80, 240, 25, 30);

        t0904.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0904.setText("O");
        t0904.setDoubleBuffered(true);
        t0904.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0904MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0904);
        t0904.setBounds(110, 240, 25, 30);

        t0905.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0905.setText("O");
        t0905.setDoubleBuffered(true);
        t0905.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0905MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0905);
        t0905.setBounds(140, 240, 25, 30);

        t0906.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0906.setText("O");
        t0906.setDoubleBuffered(true);
        t0906.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0906MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0906);
        t0906.setBounds(170, 240, 25, 30);

        t0907.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0907.setText("O");
        t0907.setDoubleBuffered(true);
        t0907.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0907MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0907);
        t0907.setBounds(200, 240, 25, 30);

        t0908.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0908.setText("O");
        t0908.setDoubleBuffered(true);
        t0908.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0908MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0908);
        t0908.setBounds(230, 240, 25, 30);

        t0909.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0909.setText("O");
        t0909.setDoubleBuffered(true);
        t0909.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0909MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0909);
        t0909.setBounds(260, 240, 25, 30);

        t0910.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0910.setText("O");
        t0910.setDoubleBuffered(true);
        t0910.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0910MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0910);
        t0910.setBounds(290, 240, 25, 30);

        t0911.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t0911.setText("O");
        t0911.setDoubleBuffered(true);
        t0911.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t0911MouseClicked(evt);
            }
        });
        pnl_tablero.add(t0911);
        t0911.setBounds(320, 240, 25, 30);

        t1002.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1002.setText("O");
        t1002.setDoubleBuffered(true);
        t1002.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1002MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1002);
        t1002.setBounds(70, 270, 25, 30);

        t1003.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1003.setText("O");
        t1003.setDoubleBuffered(true);
        t1003.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1003MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1003);
        t1003.setBounds(100, 270, 25, 30);

        t1004.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1004.setText("O");
        t1004.setDoubleBuffered(true);
        t1004.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1004MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1004);
        t1004.setBounds(130, 270, 25, 30);

        t1005.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1005.setText("O");
        t1005.setDoubleBuffered(true);
        t1005.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1005MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1005);
        t1005.setBounds(160, 270, 25, 30);

        t1006.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1006.setText("O");
        t1006.setDoubleBuffered(true);
        t1006.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1006MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1006);
        t1006.setBounds(190, 270, 25, 30);

        t1007.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1007.setText("O");
        t1007.setDoubleBuffered(true);
        t1007.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1007MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1007);
        t1007.setBounds(220, 270, 25, 30);

        t1008.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1008.setText("O");
        t1008.setDoubleBuffered(true);
        t1008.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1008MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1008);
        t1008.setBounds(250, 270, 25, 30);

        t1009.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1009.setText("O");
        t1009.setDoubleBuffered(true);
        t1009.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1009MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1009);
        t1009.setBounds(280, 270, 25, 30);

        t1010.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1010.setText("O");
        t1010.setDoubleBuffered(true);
        t1010.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1010MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1010);
        t1010.setBounds(310, 270, 25, 30);

        t1011.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1011.setText("O");
        t1011.setDoubleBuffered(true);
        t1011.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1011MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1011);
        t1011.setBounds(340, 270, 25, 30);

        t1102.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1102.setText("O");
        t1102.setDoubleBuffered(true);
        t1102.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1102MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1102);
        t1102.setBounds(50, 300, 25, 30);

        t1103.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1103.setText("O");
        t1103.setDoubleBuffered(true);
        t1103.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1103MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1103);
        t1103.setBounds(80, 300, 25, 30);

        t1104.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1104.setText("O");
        t1104.setDoubleBuffered(true);
        t1104.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1104MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1104);
        t1104.setBounds(110, 300, 25, 30);

        t1105.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1105.setText("O");
        t1105.setDoubleBuffered(true);
        t1105.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1105MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1105);
        t1105.setBounds(140, 300, 25, 30);

        t1106.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1106.setText("O");
        t1106.setDoubleBuffered(true);
        t1106.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1106MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1106);
        t1106.setBounds(170, 300, 25, 30);

        t1107.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1107.setText("O");
        t1107.setDoubleBuffered(true);
        t1107.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1107MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1107);
        t1107.setBounds(200, 300, 25, 30);

        t1108.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1108.setText("O");
        t1108.setDoubleBuffered(true);
        t1108.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1108MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1108);
        t1108.setBounds(230, 300, 25, 30);

        t1109.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1109.setText("O");
        t1109.setDoubleBuffered(true);
        t1109.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1109MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1109);
        t1109.setBounds(260, 300, 25, 30);

        t1110.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1110.setText("O");
        t1110.setDoubleBuffered(true);
        t1110.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1110MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1110);
        t1110.setBounds(290, 300, 25, 30);

        t1111.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1111.setText("O");
        t1111.setDoubleBuffered(true);
        t1111.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1111MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1111);
        t1111.setBounds(320, 300, 25, 30);

        t1112.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1112.setText("O");
        t1112.setDoubleBuffered(true);
        t1112.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1112MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1112);
        t1112.setBounds(350, 300, 25, 30);

        t1201.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1201.setText("O");
        t1201.setDoubleBuffered(true);
        t1201.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1201MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1201);
        t1201.setBounds(40, 330, 25, 30);

        t1202.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1202.setText("O");
        t1202.setDoubleBuffered(true);
        t1202.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1202MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1202);
        t1202.setBounds(70, 330, 25, 30);

        t1203.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1203.setText("O");
        t1203.setDoubleBuffered(true);
        t1203.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1203MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1203);
        t1203.setBounds(100, 330, 25, 30);

        t1204.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1204.setText("O");
        t1204.setDoubleBuffered(true);
        t1204.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1204MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1204);
        t1204.setBounds(130, 330, 25, 30);

        t1205.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1205.setText("O");
        t1205.setDoubleBuffered(true);
        t1205.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1205MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1205);
        t1205.setBounds(160, 330, 25, 30);

        t1206.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1206.setText("O");
        t1206.setDoubleBuffered(true);
        t1206.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1206MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1206);
        t1206.setBounds(190, 330, 25, 30);

        t1207.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1207.setText("O");
        t1207.setDoubleBuffered(true);
        t1207.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1207MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1207);
        t1207.setBounds(220, 330, 25, 30);

        t1208.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1208.setText("O");
        t1208.setDoubleBuffered(true);
        t1208.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1208MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1208);
        t1208.setBounds(250, 330, 25, 30);

        t1209.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1209.setText("O");
        t1209.setDoubleBuffered(true);
        t1209.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1209MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1209);
        t1209.setBounds(280, 330, 25, 30);

        t1210.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1210.setText("O");
        t1210.setDoubleBuffered(true);
        t1210.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1210MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1210);
        t1210.setBounds(310, 330, 25, 30);

        t1211.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1211.setText("O");
        t1211.setDoubleBuffered(true);
        t1211.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1211MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1211);
        t1211.setBounds(340, 330, 25, 30);

        t1212.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1212.setText("O");
        t1212.setDoubleBuffered(true);
        t1212.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1212MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1212);
        t1212.setBounds(370, 330, 25, 30);

        t1301.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1301.setText("O");
        t1301.setDoubleBuffered(true);
        t1301.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1301MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1301);
        t1301.setBounds(20, 360, 25, 30);

        t1302.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1302.setText("O");
        t1302.setDoubleBuffered(true);
        t1302.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1302MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1302);
        t1302.setBounds(50, 360, 25, 30);

        t1303.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1303.setText("O");
        t1303.setDoubleBuffered(true);
        t1303.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1303MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1303);
        t1303.setBounds(80, 360, 25, 30);

        t1304.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1304.setText("O");
        t1304.setDoubleBuffered(true);
        t1304.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1304MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1304);
        t1304.setBounds(110, 360, 25, 30);

        t1305.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1305.setText("O");
        t1305.setDoubleBuffered(true);
        t1305.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1305MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1305);
        t1305.setBounds(140, 360, 25, 30);

        t1306.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1306.setText("O");
        t1306.setDoubleBuffered(true);
        t1306.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1306MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1306);
        t1306.setBounds(170, 360, 25, 30);

        t1307.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1307.setText("O");
        t1307.setDoubleBuffered(true);
        t1307.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1307MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1307);
        t1307.setBounds(200, 360, 25, 30);

        t1308.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1308.setText("O");
        t1308.setDoubleBuffered(true);
        t1308.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1308MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1308);
        t1308.setBounds(230, 360, 25, 30);

        t1309.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1309.setText("O");
        t1309.setDoubleBuffered(true);
        t1309.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1309MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1309);
        t1309.setBounds(260, 360, 25, 30);

        t1310.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1310.setText("O");
        t1310.setDoubleBuffered(true);
        t1310.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1310MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1310);
        t1310.setBounds(290, 360, 25, 30);

        t1311.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1311.setText("O");
        t1311.setDoubleBuffered(true);
        t1311.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1311MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1311);
        t1311.setBounds(320, 360, 25, 30);

        t1312.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1312.setText("O");
        t1312.setDoubleBuffered(true);
        t1312.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1312MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1312);
        t1312.setBounds(350, 360, 25, 30);

        t1313.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1313.setText("O");
        t1313.setDoubleBuffered(true);
        t1313.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1313MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1313);
        t1313.setBounds(380, 360, 25, 30);

        t1405.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1405.setText("O");
        t1405.setDoubleBuffered(true);
        t1405.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1405MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1405);
        t1405.setBounds(160, 390, 25, 30);

        t1406.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1406.setText("O");
        t1406.setDoubleBuffered(true);
        t1406.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1406MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1406);
        t1406.setBounds(190, 390, 25, 30);

        t1407.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1407.setText("O");
        t1407.setDoubleBuffered(true);
        t1407.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1407MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1407);
        t1407.setBounds(220, 390, 25, 30);

        t1408.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1408.setText("O");
        t1408.setDoubleBuffered(true);
        t1408.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1408MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1408);
        t1408.setBounds(250, 390, 25, 30);

        t1506.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1506.setText("O");
        t1506.setDoubleBuffered(true);
        t1506.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1506MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1506);
        t1506.setBounds(170, 420, 25, 30);

        t1507.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1507.setText("O");
        t1507.setDoubleBuffered(true);
        t1507.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1507MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1507);
        t1507.setBounds(200, 420, 25, 30);

        t1508.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1508.setText("O");
        t1508.setDoubleBuffered(true);
        t1508.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1508MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1508);
        t1508.setBounds(230, 420, 25, 30);

        t1606.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1606.setText("O");
        t1606.setDoubleBuffered(true);
        t1606.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1606MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1606);
        t1606.setBounds(190, 450, 25, 30);

        t1607.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1607.setText("O");
        t1607.setDoubleBuffered(true);
        t1607.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1607MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1607);
        t1607.setBounds(220, 450, 25, 30);

        t1707.setFont(new java.awt.Font("Tahoma", 0, 35)); // NOI18N
        t1707.setText("O");
        t1707.setDoubleBuffered(true);
        t1707.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                t1707MouseClicked(evt);
            }
        });
        pnl_tablero.add(t1707);
        t1707.setBounds(200, 480, 25, 30);

        getContentPane().add(pnl_tablero);
        pnl_tablero.setBounds(10, 11, 444, 520);

        lbl_tablero.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pr3_ia1/tablero.png"))); // NOI18N
        getContentPane().add(lbl_tablero);
        lbl_tablero.setBounds(10, 11, 440, 520);

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel4.setText("Turno de:");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(507, 215, 68, 17);

        lbl_turno.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        lbl_turno.setForeground(new java.awt.Color(255, 0, 0));
        lbl_turno.setText("J1");
        getContentPane().add(lbl_turno);
        lbl_turno.setBounds(608, 203, 27, 33);

        btn_termniart.setText("Terminar Turno");
        btn_termniart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_termniartActionPerformed(evt);
            }
        });
        getContentPane().add(btn_termniart);
        btn_termniart.setBounds(520, 240, 130, 23);

        lbl_ganador.setFont(new java.awt.Font("Tahoma", 1, 48)); // NOI18N
        lbl_ganador.setForeground(new java.awt.Color(0, 102, 51));
        lbl_ganador.setText("Gana J#");
        getContentPane().add(lbl_ganador);
        lbl_ganador.setBounds(480, 270, 210, 58);

        jTextArea1.setColumns(20);
        jTextArea1.setEditable(false);
        jTextArea1.setFont(new java.awt.Font("Monospaced", 0, 12)); // NOI18N
        jTextArea1.setLineWrap(true);
        jTextArea1.setRows(5);
        jTextArea1.setText("Instrucciones: \nseleccione ficha a mover con DOBLE CLIcK\nluego la casilla donde se colocara con CLIcK");
        jTextArea1.setEnabled(false);
        jScrollPane1.setViewportView(jTextArea1);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(480, 332, 188, 199);

        jLabel5.setText("Usar");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(464, 98, 40, 14);

        cmb_modoalg.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "MAX", "MIN" }));
        getContentPane().add(cmb_modoalg);
        cmb_modoalg.setBounds(632, 94, 60, 22);

        btn2_juego.setText("Iniciar Juego");
        btn2_juego.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn2_juegoActionPerformed(evt);
            }
        });
        getContentPane().add(btn2_juego);
        btn2_juego.setBounds(500, 160, 160, 23);

        menuBitacora.setText("Bitácora");

        menuGuardarB.setText("Guardar bitácora");
        menuGuardarB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuGuardarBActionPerformed(evt);
            }
        });
        menuBitacora.add(menuGuardarB);

        menu.add(menuBitacora);

        setJMenuBar(menu);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cmb_fichasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmb_fichasActionPerformed
        int cant = this.cmb_fichas.getSelectedIndex();
        //iniciar_tablero(cant);
        if (cant==0){
            this.j1_11.setVisible(false);
            this.j1_12.setVisible(false);
            this.j1_13.setVisible(false);
            this.j1_14.setVisible(false);
            this.j1_15.setVisible(false);
            this.j1_16.setVisible(false);
            this.j1_17.setVisible(false);
            this.j1_18.setVisible(false);
            this.j1_19.setVisible(false);
            this.j1_20.setVisible(false);
            this.j1_21.setVisible(false);
            this.j1_22.setVisible(false);
            this.j1_23.setVisible(false);
            this.j1_24.setVisible(false);
            this.j1_25.setVisible(false);
            this.j1_26.setVisible(false);
            this.j1_27.setVisible(false);
            this.j1_28.setVisible(false);
            this.j1_29.setVisible(false);
            this.j1_30.setVisible(false);            
            this.j2_11.setVisible(false);
            this.j2_12.setVisible(false);
            this.j2_13.setVisible(false);
            this.j2_14.setVisible(false);
            this.j2_15.setVisible(false);
            this.j2_16.setVisible(false);
            this.j2_17.setVisible(false);
            this.j2_18.setVisible(false);
            this.j2_19.setVisible(false);
            this.j2_20.setVisible(false);
            this.j2_21.setVisible(false);
            this.j2_22.setVisible(false);
            this.j2_23.setVisible(false);
            this.j2_24.setVisible(false);
            this.j2_25.setVisible(false);
            this.j2_26.setVisible(false);
            this.j2_27.setVisible(false);
            this.j2_28.setVisible(false);
            this.j2_29.setVisible(false);
            this.j2_30.setVisible(false); 
        }
        if (cant==1){
            this.j1_11.setVisible(true);
            this.j1_12.setVisible(true);
            this.j1_13.setVisible(true);
            this.j1_14.setVisible(true);
            this.j1_15.setVisible(true);
            this.j1_16.setVisible(true);
            this.j1_17.setVisible(true);
            this.j1_18.setVisible(true);
            this.j1_19.setVisible(true);
            this.j1_20.setVisible(true);
            this.j1_21.setVisible(false);
            this.j1_22.setVisible(false);
            this.j1_23.setVisible(false);
            this.j1_24.setVisible(false);
            this.j1_25.setVisible(false);
            this.j1_26.setVisible(false);
            this.j1_27.setVisible(false);
            this.j1_28.setVisible(false);
            this.j1_29.setVisible(false);
            this.j1_30.setVisible(false);            
            this.j2_11.setVisible(true);
            this.j2_12.setVisible(true);
            this.j2_13.setVisible(true);
            this.j2_14.setVisible(true);
            this.j2_15.setVisible(true);
            this.j2_16.setVisible(true);
            this.j2_17.setVisible(true);
            this.j2_18.setVisible(true);
            this.j2_19.setVisible(true);
            this.j2_20.setVisible(true);
            this.j2_21.setVisible(false);
            this.j2_22.setVisible(false);
            this.j2_23.setVisible(false);
            this.j2_24.setVisible(false);
            this.j2_25.setVisible(false);
            this.j2_26.setVisible(false);
            this.j2_27.setVisible(false);
            this.j2_28.setVisible(false);
            this.j2_29.setVisible(false);
            this.j2_30.setVisible(false); 
        }
              if (cant==2){
            this.j1_11.setVisible(true);
            this.j1_12.setVisible(true);
            this.j1_13.setVisible(true);
            this.j1_14.setVisible(true);
            this.j1_15.setVisible(true);
            this.j1_16.setVisible(true);
            this.j1_17.setVisible(true);
            this.j1_18.setVisible(true);
            this.j1_19.setVisible(true);
            this.j1_20.setVisible(true);
            this.j1_21.setVisible(true);
            this.j1_22.setVisible(true);
            this.j1_23.setVisible(true);
            this.j1_24.setVisible(true);
            this.j1_25.setVisible(true);
            this.j1_26.setVisible(true);
            this.j1_27.setVisible(true);
            this.j1_28.setVisible(true);
            this.j1_29.setVisible(true);
            this.j1_30.setVisible(true);            
            this.j2_11.setVisible(true);
            this.j2_12.setVisible(true);
            this.j2_13.setVisible(true);
            this.j2_14.setVisible(true);
            this.j2_15.setVisible(true);
            this.j2_16.setVisible(true);
            this.j2_17.setVisible(true);
            this.j2_18.setVisible(true);
            this.j2_19.setVisible(true);
            this.j2_20.setVisible(true);
            this.j2_21.setVisible(true);
            this.j2_22.setVisible(true);
            this.j2_23.setVisible(true);
            this.j2_24.setVisible(true);
            this.j2_25.setVisible(true);
            this.j2_26.setVisible(true);
            this.j2_27.setVisible(true);
            this.j2_28.setVisible(true);
            this.j2_29.setVisible(true);
            this.j2_30.setVisible(true); 
        }
    }//GEN-LAST:event_cmb_fichasActionPerformed
                                       
    private void t0107MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0107MouseClicked
        mover(this.t0107,1,7);        
    }//GEN-LAST:event_t0107MouseClicked

    private void j1_7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_7MouseClicked
        pieza_selec(this.j1_7,6);
    }//GEN-LAST:event_j1_7MouseClicked

    private void t0505MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0505MouseClicked
        mover(this.t0505,5,5);        
    }//GEN-LAST:event_t0505MouseClicked

    private void t0206MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0206MouseClicked
        mover(this.t0206,2,6);
    }//GEN-LAST:event_t0206MouseClicked

    private void t0207MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0207MouseClicked
        mover(this.t0207,2,7);
    }//GEN-LAST:event_t0207MouseClicked

    private void t0306MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0306MouseClicked
        mover(this.t0306,3,6);
    }//GEN-LAST:event_t0306MouseClicked

    private void t0307MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0307MouseClicked
        mover(this.t0307,3,7);
    }//GEN-LAST:event_t0307MouseClicked

    private void t0308MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0308MouseClicked
        mover(this.t0308,3,8);
    }//GEN-LAST:event_t0308MouseClicked

    private void t0405MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0405MouseClicked
        mover(this.t0405,4,5);
    }//GEN-LAST:event_t0405MouseClicked

    private void t0406MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0406MouseClicked
        mover(this.t0406,4,6);
    }//GEN-LAST:event_t0406MouseClicked

    private void t0407MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0407MouseClicked
        mover(this.t0407,4,7);
    }//GEN-LAST:event_t0407MouseClicked

    private void t0408MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0408MouseClicked
        mover(this.t0408,4,8);
    }//GEN-LAST:event_t0408MouseClicked

    private void t0501MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0501MouseClicked
        mover(this.t0501,5,1);
    }//GEN-LAST:event_t0501MouseClicked

    private void t0502MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0502MouseClicked
        mover(this.t0502,5,2);
    }//GEN-LAST:event_t0502MouseClicked

    private void t0503MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0503MouseClicked
        mover(this.t0503,5,3);
    }//GEN-LAST:event_t0503MouseClicked

    private void t0504MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0504MouseClicked
        mover(this.t0504,5,4);
    }//GEN-LAST:event_t0504MouseClicked

    private void t0506MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0506MouseClicked
        mover(this.t0506,5,6);
    }//GEN-LAST:event_t0506MouseClicked

    private void t0507MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0507MouseClicked
        mover(this.t0507,5,7);
    }//GEN-LAST:event_t0507MouseClicked

    private void t0508MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0508MouseClicked
        mover(this.t0508,5,8);
    }//GEN-LAST:event_t0508MouseClicked

    private void t0509MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0509MouseClicked
        mover(this.t0509,5,9);
    }//GEN-LAST:event_t0509MouseClicked

    private void t0510MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0510MouseClicked
        mover(this.t0510,5,10);
    }//GEN-LAST:event_t0510MouseClicked

    private void t0511MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0511MouseClicked
        mover(this.t0511,5,11);
    }//GEN-LAST:event_t0511MouseClicked

    private void t0512MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0512MouseClicked
        mover(this.t0512,5,12);
    }//GEN-LAST:event_t0512MouseClicked

    private void t0513MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0513MouseClicked
        mover(this.t0513,5,13);
    }//GEN-LAST:event_t0513MouseClicked

    private void t0601MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0601MouseClicked
        mover(this.t0601,6,1);
    }//GEN-LAST:event_t0601MouseClicked

    private void t0602MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0602MouseClicked
        mover(this.t0602,6,2);
    }//GEN-LAST:event_t0602MouseClicked

    private void t0603MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0603MouseClicked
        mover(this.t0603,6,3);
    }//GEN-LAST:event_t0603MouseClicked

    private void t0604MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0604MouseClicked
        mover(this.t0604,6,4);
    }//GEN-LAST:event_t0604MouseClicked

    private void t0605MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0605MouseClicked
        mover(this.t0605,6,5);
    }//GEN-LAST:event_t0605MouseClicked

    private void t0606MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0606MouseClicked
        mover(this.t0606,6,6);
    }//GEN-LAST:event_t0606MouseClicked

    private void t0607MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0607MouseClicked
        mover(this.t0607,6,7);
    }//GEN-LAST:event_t0607MouseClicked

    private void t0608MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0608MouseClicked
        mover(this.t0608,6,8);
    }//GEN-LAST:event_t0608MouseClicked

    private void t0609MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0609MouseClicked
        mover(this.t0609,6,9);
    }//GEN-LAST:event_t0609MouseClicked

    private void t0610MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0610MouseClicked
        mover(this.t0610,6,10);
    }//GEN-LAST:event_t0610MouseClicked

    private void t0611MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0611MouseClicked
        mover(this.t0611,6,11);
    }//GEN-LAST:event_t0611MouseClicked

    private void t0612MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0612MouseClicked
        mover(this.t0612,6,12);
    }//GEN-LAST:event_t0612MouseClicked

    private void t0702MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0702MouseClicked
        mover(this.t0702,7,2);
    }//GEN-LAST:event_t0702MouseClicked

    private void t0703MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0703MouseClicked
        mover(this.t0703,7,3);
    }//GEN-LAST:event_t0703MouseClicked

    private void t0704MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0704MouseClicked
        mover(this.t0704,7,4);
    }//GEN-LAST:event_t0704MouseClicked

    private void t0705MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0705MouseClicked
        mover(this.t0705,7,5);
    }//GEN-LAST:event_t0705MouseClicked

    private void t0706MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0706MouseClicked
        mover(this.t0706,7,6);
    }//GEN-LAST:event_t0706MouseClicked

    private void t0707MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0707MouseClicked
        mover(this.t0707,7,7);
    }//GEN-LAST:event_t0707MouseClicked

    private void t0708MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0708MouseClicked
        mover(this.t0708,7,8);
    }//GEN-LAST:event_t0708MouseClicked

    private void t0709MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0709MouseClicked
        mover(this.t0709,7,9);
    }//GEN-LAST:event_t0709MouseClicked

    private void t0710MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0710MouseClicked
        mover(this.t0710,7,10);
    }//GEN-LAST:event_t0710MouseClicked

    private void t0711MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0711MouseClicked
        mover(this.t0711,7,11);
    }//GEN-LAST:event_t0711MouseClicked

    private void t0712MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0712MouseClicked
        mover(this.t0712,7,12);
    }//GEN-LAST:event_t0712MouseClicked

    private void t0802MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0802MouseClicked
        mover(this.t0802,8,2);
    }//GEN-LAST:event_t0802MouseClicked

    private void t0803MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0803MouseClicked
        mover(this.t0803,8,3);
    }//GEN-LAST:event_t0803MouseClicked

    private void t0804MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0804MouseClicked
        mover(this.t0804,8,4);
    }//GEN-LAST:event_t0804MouseClicked

    private void t0805MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0805MouseClicked
        mover(this.t0805,8,5);
    }//GEN-LAST:event_t0805MouseClicked

    private void t0806MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0806MouseClicked
        mover(this.t0806,8,6);
    }//GEN-LAST:event_t0806MouseClicked

    private void t0807MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0807MouseClicked
        mover(this.t0807,8,7);
    }//GEN-LAST:event_t0807MouseClicked

    private void t0808MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0808MouseClicked
        mover(this.t0808,8,8);
    }//GEN-LAST:event_t0808MouseClicked

    private void t0809MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0809MouseClicked
        mover(this.t0809,8,9);
    }//GEN-LAST:event_t0809MouseClicked

    private void t0810MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0810MouseClicked
        mover(this.t0810,8,10);
    }//GEN-LAST:event_t0810MouseClicked

    private void t0811MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0811MouseClicked
        mover(this.t0811,8,11);
    }//GEN-LAST:event_t0811MouseClicked

    private void t0903MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0903MouseClicked
        mover(this.t0903,9,3);
    }//GEN-LAST:event_t0903MouseClicked

    private void t0904MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0904MouseClicked
        mover(this.t0904,9,4);
    }//GEN-LAST:event_t0904MouseClicked

    private void t0905MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0905MouseClicked
        mover(this.t0905,9,5);
    }//GEN-LAST:event_t0905MouseClicked

    private void t0906MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0906MouseClicked
        mover(this.t0906,9,6);
    }//GEN-LAST:event_t0906MouseClicked

    private void t0907MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0907MouseClicked
        mover(this.t0907,9,7);
    }//GEN-LAST:event_t0907MouseClicked

    private void t0908MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0908MouseClicked
        mover(this.t0908,9,8);
    }//GEN-LAST:event_t0908MouseClicked

    private void t0909MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0909MouseClicked
        mover(this.t0909,9,9);
    }//GEN-LAST:event_t0909MouseClicked

    private void t0910MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0910MouseClicked
        mover(this.t0910,9,10);
    }//GEN-LAST:event_t0910MouseClicked

    private void t0911MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t0911MouseClicked
        mover(this.t0911,9,11);
    }//GEN-LAST:event_t0911MouseClicked

    private void t1002MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1002MouseClicked
        mover(this.t1002,10,2);
    }//GEN-LAST:event_t1002MouseClicked

    private void t1003MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1003MouseClicked
        mover(this.t1003,10,3);
    }//GEN-LAST:event_t1003MouseClicked

    private void t1004MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1004MouseClicked
        mover(this.t1004,10,4);
    }//GEN-LAST:event_t1004MouseClicked

    private void t1005MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1005MouseClicked
        mover(this.t1005,10,5);
    }//GEN-LAST:event_t1005MouseClicked

    private void t1006MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1006MouseClicked
        mover(this.t1006,10,6);
    }//GEN-LAST:event_t1006MouseClicked

    private void t1007MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1007MouseClicked
        mover(this.t1007,10,7);
    }//GEN-LAST:event_t1007MouseClicked

    private void t1008MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1008MouseClicked
        mover(this.t1008,10,8);
    }//GEN-LAST:event_t1008MouseClicked

    private void t1009MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1009MouseClicked
        mover(this.t1009,10,9);
    }//GEN-LAST:event_t1009MouseClicked

    private void t1010MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1010MouseClicked
        mover(this.t1010,10,10);
    }//GEN-LAST:event_t1010MouseClicked

    private void t1011MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1011MouseClicked
        mover(this.t1011,10,11);
    }//GEN-LAST:event_t1011MouseClicked

    private void t1102MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1102MouseClicked
        mover(this.t1102,11,2);
    }//GEN-LAST:event_t1102MouseClicked

    private void t1103MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1103MouseClicked
        mover(this.t1103,11,3);
    }//GEN-LAST:event_t1103MouseClicked

    private void t1104MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1104MouseClicked
        mover(this.t1104,11,4);
    }//GEN-LAST:event_t1104MouseClicked

    private void t1105MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1105MouseClicked
        mover(this.t1105,11,5);
    }//GEN-LAST:event_t1105MouseClicked

    private void t1106MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1106MouseClicked
        mover(this.t1106,11,6);
    }//GEN-LAST:event_t1106MouseClicked

    private void t1107MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1107MouseClicked
        mover(this.t1107,11,7);
    }//GEN-LAST:event_t1107MouseClicked

    private void t1108MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1108MouseClicked
        mover(this.t1108,11,8);
    }//GEN-LAST:event_t1108MouseClicked

    private void t1109MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1109MouseClicked
        mover(this.t1109,11,9);
    }//GEN-LAST:event_t1109MouseClicked

    private void t1110MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1110MouseClicked
        mover(this.t1110,11,10);
    }//GEN-LAST:event_t1110MouseClicked

    private void t1111MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1111MouseClicked
        mover(this.t1111,11,11);
    }//GEN-LAST:event_t1111MouseClicked

    private void t1112MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1112MouseClicked
        mover(this.t1112,11,12);
    }//GEN-LAST:event_t1112MouseClicked

    private void t1201MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1201MouseClicked
        mover(this.t1201,12,1);
    }//GEN-LAST:event_t1201MouseClicked

    private void t1202MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1202MouseClicked
        mover(this.t1202,12,2);
    }//GEN-LAST:event_t1202MouseClicked

    private void t1203MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1203MouseClicked
        mover(this.t1203,12,3);
    }//GEN-LAST:event_t1203MouseClicked

    private void t1204MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1204MouseClicked
        mover(this.t1204,12,4);
    }//GEN-LAST:event_t1204MouseClicked

    private void t1205MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1205MouseClicked
        mover(this.t1205,12,5);
    }//GEN-LAST:event_t1205MouseClicked

    private void t1206MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1206MouseClicked
        mover(this.t1206,12,6);
    }//GEN-LAST:event_t1206MouseClicked

    private void t1207MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1207MouseClicked
        mover(this.t1207,12,7);
    }//GEN-LAST:event_t1207MouseClicked

    private void t1208MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1208MouseClicked
        mover(this.t1208,12,8);
    }//GEN-LAST:event_t1208MouseClicked

    private void t1209MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1209MouseClicked
        mover(this.t1209,12,9);
    }//GEN-LAST:event_t1209MouseClicked

    private void t1210MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1210MouseClicked
        mover(this.t1210,12,10);
    }//GEN-LAST:event_t1210MouseClicked

    private void t1211MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1211MouseClicked
        mover(this.t1211,12,11);
    }//GEN-LAST:event_t1211MouseClicked

    private void t1212MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1212MouseClicked
        mover(this.t1212,12,12);
    }//GEN-LAST:event_t1212MouseClicked

    private void t1301MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1301MouseClicked
        mover(this.t1301,13,1);
    }//GEN-LAST:event_t1301MouseClicked

    private void t1302MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1302MouseClicked
        mover(this.t1302,13,2);
    }//GEN-LAST:event_t1302MouseClicked

    private void t1303MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1303MouseClicked
        mover(this.t1303,13,3);
    }//GEN-LAST:event_t1303MouseClicked

    private void t1304MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1304MouseClicked
        mover(this.t1304,13,4);
    }//GEN-LAST:event_t1304MouseClicked

    private void t1305MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1305MouseClicked
        mover(this.t1305,13,5);
    }//GEN-LAST:event_t1305MouseClicked

    private void t1306MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1306MouseClicked
        mover(this.t1306,13,6);
    }//GEN-LAST:event_t1306MouseClicked

    private void t1307MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1307MouseClicked
        mover(this.t1307,13,7);
    }//GEN-LAST:event_t1307MouseClicked

    private void t1308MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1308MouseClicked
        mover(this.t1308,13,8);
    }//GEN-LAST:event_t1308MouseClicked

    private void t1309MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1309MouseClicked
        mover(this.t1309,13,9);
    }//GEN-LAST:event_t1309MouseClicked

    private void t1310MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1310MouseClicked
        mover(this.t1310,13,10);
    }//GEN-LAST:event_t1310MouseClicked

    private void t1311MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1311MouseClicked
        mover(this.t1311,13,11);
    }//GEN-LAST:event_t1311MouseClicked

    private void t1312MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1312MouseClicked
        mover(this.t1312,13,12);
    }//GEN-LAST:event_t1312MouseClicked

    private void t1313MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1313MouseClicked
        mover(this.t1313,13,13);
    }//GEN-LAST:event_t1313MouseClicked

    private void t1405MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1405MouseClicked
        mover(this.t1405,14,5);
    }//GEN-LAST:event_t1405MouseClicked

    private void t1406MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1406MouseClicked
        mover(this.t1406,14,6);
    }//GEN-LAST:event_t1406MouseClicked

    private void t1407MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1407MouseClicked
        mover(this.t1407,14,7);
    }//GEN-LAST:event_t1407MouseClicked

    private void t1408MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1408MouseClicked
        mover(this.t1408,14,8);
    }//GEN-LAST:event_t1408MouseClicked

    private void t1506MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1506MouseClicked
        mover(this.t1506,15,6);
    }//GEN-LAST:event_t1506MouseClicked

    private void t1507MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1507MouseClicked
        mover(this.t1507,15,7);
    }//GEN-LAST:event_t1507MouseClicked

    private void t1508MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1508MouseClicked
        mover(this.t1508,15,8);
    }//GEN-LAST:event_t1508MouseClicked

    private void t1606MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1606MouseClicked
        mover(this.t1606,16,6);
    }//GEN-LAST:event_t1606MouseClicked

    private void t1607MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1607MouseClicked
        mover(this.t1607,16,7);
    }//GEN-LAST:event_t1607MouseClicked

    private void t1707MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_t1707MouseClicked
        mover(this.t1707,17,7);
    }//GEN-LAST:event_t1707MouseClicked

    private void j2_1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_1MouseClicked
        pieza_selec(this.j2_1,30);
    }//GEN-LAST:event_j2_1MouseClicked

    private void j2_2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_2MouseClicked
        pieza_selec(this.j2_2,31);
    }//GEN-LAST:event_j2_2MouseClicked

    private void j2_3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_3MouseClicked
        pieza_selec(this.j2_3,32);
    }//GEN-LAST:event_j2_3MouseClicked

    private void j2_4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_4MouseClicked
        pieza_selec(this.j2_4,33);
    }//GEN-LAST:event_j2_4MouseClicked

    private void j2_5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_5MouseClicked
        pieza_selec(this.j2_5,34);
    }//GEN-LAST:event_j2_5MouseClicked

    private void j2_6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_6MouseClicked
        pieza_selec(this.j2_6,35);
    }//GEN-LAST:event_j2_6MouseClicked

    private void j2_7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_7MouseClicked
        pieza_selec(this.j2_7,36);
    }//GEN-LAST:event_j2_7MouseClicked

    private void j2_8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_8MouseClicked
        pieza_selec(this.j2_8,37);
    }//GEN-LAST:event_j2_8MouseClicked

    private void j2_9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_9MouseClicked
        pieza_selec(this.j2_9,38);
    }//GEN-LAST:event_j2_9MouseClicked

    private void j2_10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_10MouseClicked
        pieza_selec(this.j2_10,39);
    }//GEN-LAST:event_j2_10MouseClicked

    private void j2_11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_11MouseClicked
        pieza_selec(this.j2_11,40);
    }//GEN-LAST:event_j2_11MouseClicked

    private void j2_12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_12MouseClicked
        pieza_selec(this.j2_12,41);
    }//GEN-LAST:event_j2_12MouseClicked

    private void j2_13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_13MouseClicked
        pieza_selec(this.j2_13,42);
    }//GEN-LAST:event_j2_13MouseClicked

    private void j2_14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_14MouseClicked
        pieza_selec(this.j2_14,43);
    }//GEN-LAST:event_j2_14MouseClicked

    private void j2_15MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_15MouseClicked
        pieza_selec(this.j2_15,44);
    }//GEN-LAST:event_j2_15MouseClicked

    private void j2_16MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_16MouseClicked
        pieza_selec(this.j2_16,45);
    }//GEN-LAST:event_j2_16MouseClicked

    private void j2_17MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_17MouseClicked
        pieza_selec(this.j2_17,46);
    }//GEN-LAST:event_j2_17MouseClicked

    private void j2_18MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_18MouseClicked
        pieza_selec(this.j2_18,47);
    }//GEN-LAST:event_j2_18MouseClicked

    private void j2_19MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_19MouseClicked
        pieza_selec(this.j2_19,48);
    }//GEN-LAST:event_j2_19MouseClicked

    private void j2_20MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_20MouseClicked
        pieza_selec(this.j2_20,49);
    }//GEN-LAST:event_j2_20MouseClicked

    private void j2_21MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_21MouseClicked
        pieza_selec(this.j2_21,50);
    }//GEN-LAST:event_j2_21MouseClicked

    private void j2_22MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_22MouseClicked
        pieza_selec(this.j2_22,51);
    }//GEN-LAST:event_j2_22MouseClicked

    private void j2_23MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_23MouseClicked
        pieza_selec(this.j2_23,52);
    }//GEN-LAST:event_j2_23MouseClicked

    private void j2_24MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_24MouseClicked
        pieza_selec(this.j2_24,53);
    }//GEN-LAST:event_j2_24MouseClicked

    private void j2_25MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_25MouseClicked
        pieza_selec(this.j2_25,54);
    }//GEN-LAST:event_j2_25MouseClicked

    private void j2_26MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_26MouseClicked
        pieza_selec(this.j2_26,55);
    }//GEN-LAST:event_j2_26MouseClicked

    private void j2_27MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_27MouseClicked
        pieza_selec(this.j2_27,56);
    }//GEN-LAST:event_j2_27MouseClicked

    private void j2_28MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_28MouseClicked
        pieza_selec(this.j2_28,57);
    }//GEN-LAST:event_j2_28MouseClicked

    private void j2_29MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_29MouseClicked
        pieza_selec(this.j2_29,58);
    }//GEN-LAST:event_j2_29MouseClicked

    private void j2_30MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j2_30MouseClicked
        pieza_selec(this.j2_30,59);
    }//GEN-LAST:event_j2_30MouseClicked

    private void j1_1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_1MouseClicked
        pieza_selec(this.j1_1,0);
    }//GEN-LAST:event_j1_1MouseClicked

    private void j1_2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_2MouseClicked
        pieza_selec(this.j1_2,1);
    }//GEN-LAST:event_j1_2MouseClicked

    private void j1_3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_3MouseClicked
        pieza_selec(this.j1_3,2);
    }//GEN-LAST:event_j1_3MouseClicked

    private void j1_4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_4MouseClicked
        pieza_selec(this.j1_4,3);
    }//GEN-LAST:event_j1_4MouseClicked

    private void j1_5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_5MouseClicked
        pieza_selec(this.j1_5,4);
    }//GEN-LAST:event_j1_5MouseClicked

    private void j1_6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_6MouseClicked
        pieza_selec(this.j1_6,5);
    }//GEN-LAST:event_j1_6MouseClicked

    private void j1_8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_8MouseClicked
        pieza_selec(this.j1_8,7);
    }//GEN-LAST:event_j1_8MouseClicked

    private void j1_9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_9MouseClicked
        pieza_selec(this.j1_9,8);
    }//GEN-LAST:event_j1_9MouseClicked

    private void j1_10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_10MouseClicked
        pieza_selec(this.j1_10,9);
    }//GEN-LAST:event_j1_10MouseClicked

    private void cmb_tipojuegoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmb_tipojuegoActionPerformed
        if (this.cmb_tipojuego.getSelectedIndex()==0){
            this.cmb_modoalg.setEnabled(false);
        }else{
            this.cmb_modoalg.setEnabled(true);
        }
    }//GEN-LAST:event_cmb_tipojuegoActionPerformed

    private void j1_11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_11MouseClicked
        pieza_selec(this.j1_11,10);
    }//GEN-LAST:event_j1_11MouseClicked

    private void j1_12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_12MouseClicked
        pieza_selec(this.j1_12,11);
    }//GEN-LAST:event_j1_12MouseClicked

    private void j1_13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_13MouseClicked
        pieza_selec(this.j1_13,12);
    }//GEN-LAST:event_j1_13MouseClicked

    private void j1_14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_14MouseClicked
        pieza_selec(this.j1_14,13);
    }//GEN-LAST:event_j1_14MouseClicked

    private void j1_15MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_15MouseClicked
        pieza_selec(this.j1_15,14);
    }//GEN-LAST:event_j1_15MouseClicked

    private void j1_16MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_16MouseClicked
        pieza_selec(this.j1_16,15);
    }//GEN-LAST:event_j1_16MouseClicked

    private void j1_17MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_17MouseClicked
        pieza_selec(this.j1_17,16);
    }//GEN-LAST:event_j1_17MouseClicked

    private void j1_18MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_18MouseClicked
        pieza_selec(this.j1_18,17);
    }//GEN-LAST:event_j1_18MouseClicked

    private void j1_19MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_19MouseClicked
        pieza_selec(this.j1_19,18);
    }//GEN-LAST:event_j1_19MouseClicked

    private void j1_20MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_20MouseClicked
        pieza_selec(this.j1_20,19);
    }//GEN-LAST:event_j1_20MouseClicked

    private void j1_21MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_21MouseClicked
        pieza_selec(this.j1_21,20);        
    }//GEN-LAST:event_j1_21MouseClicked

    private void j1_22MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_22MouseClicked
        pieza_selec(this.j1_22,21);
    }//GEN-LAST:event_j1_22MouseClicked

    private void j1_23MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_23MouseClicked
        pieza_selec(this.j1_23,22);        
    }//GEN-LAST:event_j1_23MouseClicked

    private void j1_24MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_24MouseClicked
        pieza_selec(this.j1_24,23);
    }//GEN-LAST:event_j1_24MouseClicked

    private void j1_25MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_25MouseClicked
        pieza_selec(this.j1_25,24);
    }//GEN-LAST:event_j1_25MouseClicked

    private void j1_26MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_26MouseClicked
        pieza_selec(this.j1_26,25);
    }//GEN-LAST:event_j1_26MouseClicked

    private void j1_27MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_27MouseClicked
        pieza_selec(this.j1_27,26);        
    }//GEN-LAST:event_j1_27MouseClicked

    private void j1_28MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_28MouseClicked
        pieza_selec(this.j1_28,27);        
    }//GEN-LAST:event_j1_28MouseClicked

    private void j1_29MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_29MouseClicked
        pieza_selec(this.j1_29,28);
    }//GEN-LAST:event_j1_29MouseClicked

    private void j1_30MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j1_30MouseClicked
        pieza_selec(this.j1_30,29);        
    }//GEN-LAST:event_j1_30MouseClicked

    private void btn2_juegoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn2_juegoActionPerformed
        iniciar_detener();        
    }//GEN-LAST:event_btn2_juegoActionPerformed

    private void btn_termniartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_termniartActionPerformed
        ///agregar a bitacora
        bitacora.add(String.valueOf(nturno)+" --- JUGADOR: "+String.valueOf(turno) +" --- "+pieza_s.getName()+" - " + movimiento );
        movimiento = "";
        terminar_t();               
    }//GEN-LAST:event_btn_termniartActionPerformed

    private void btnSeleccionarDirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSeleccionarDirActionPerformed
        // TODO add your handling code here:
        if (fcBitacora.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
            txtDir.setText(fcBitacora.getSelectedFile().getPath());
            btnGuardarBitacora.setEnabled(true);
        }
    }//GEN-LAST:event_btnSeleccionarDirActionPerformed

    private void btnGuardarBitacoraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarBitacoraActionPerformed
        // TODO add your handling code here:
        if (crearPDF(txtDir.getText())) {
            JOptionPane.showMessageDialog(guardarBitacora, "Bitácora guardada.", "Bitácora", JOptionPane.INFORMATION_MESSAGE);
        }
    }//GEN-LAST:event_btnGuardarBitacoraActionPerformed

    private void menuGuardarBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuGuardarBActionPerformed
      
        txtDir.setText("");
        btnGuardarBitacora.setEnabled(false);
        guardarBitacora.pack();
        guardarBitacora.setVisible(true);
    }//GEN-LAST:event_menuGuardarBActionPerformed

    private void cmb_jugadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmb_jugadorActionPerformed
        if(this.cmb_jugador.getSelectedIndex()==2){
            this.cmb_fichas.setEnabled(false);
            this.cmb_modoalg.setEnabled(false);
            this.cmb_tipojuego.setEnabled(false);
        }else{
            this.cmb_fichas.setEnabled(true);
            this.cmb_modoalg.setEnabled(true);
            this.cmb_tipojuego.setEnabled(true);
        }
    }//GEN-LAST:event_cmb_jugadorActionPerformed
        
     
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(gui_pr3_ia1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(gui_pr3_ia1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(gui_pr3_ia1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(gui_pr3_ia1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new gui_pr3_ia1().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JToggleButton btn2_juego;
    private javax.swing.JButton btnGuardarBitacora;
    private javax.swing.JButton btnSeleccionarDir;
    private javax.swing.JButton btn_termniart;
    private javax.swing.JComboBox cmb_fichas;
    private javax.swing.JComboBox cmb_jugador;
    private javax.swing.JComboBox cmb_modoalg;
    private javax.swing.JComboBox cmb_tipojuego;
    private javax.swing.JFileChooser fcBitacora;
    private javax.swing.JDialog guardarBitacora;
    private javax.swing.JLabel j1_1;
    private javax.swing.JLabel j1_10;
    private javax.swing.JLabel j1_11;
    private javax.swing.JLabel j1_12;
    private javax.swing.JLabel j1_13;
    private javax.swing.JLabel j1_14;
    private javax.swing.JLabel j1_15;
    private javax.swing.JLabel j1_16;
    private javax.swing.JLabel j1_17;
    private javax.swing.JLabel j1_18;
    private javax.swing.JLabel j1_19;
    private javax.swing.JLabel j1_2;
    private javax.swing.JLabel j1_20;
    private javax.swing.JLabel j1_21;
    private javax.swing.JLabel j1_22;
    private javax.swing.JLabel j1_23;
    private javax.swing.JLabel j1_24;
    private javax.swing.JLabel j1_25;
    private javax.swing.JLabel j1_26;
    private javax.swing.JLabel j1_27;
    private javax.swing.JLabel j1_28;
    private javax.swing.JLabel j1_29;
    private javax.swing.JLabel j1_3;
    private javax.swing.JLabel j1_30;
    private javax.swing.JLabel j1_4;
    private javax.swing.JLabel j1_5;
    private javax.swing.JLabel j1_6;
    private javax.swing.JLabel j1_7;
    private javax.swing.JLabel j1_8;
    private javax.swing.JLabel j1_9;
    private javax.swing.JLabel j2_1;
    private javax.swing.JLabel j2_10;
    private javax.swing.JLabel j2_11;
    private javax.swing.JLabel j2_12;
    private javax.swing.JLabel j2_13;
    private javax.swing.JLabel j2_14;
    private javax.swing.JLabel j2_15;
    private javax.swing.JLabel j2_16;
    private javax.swing.JLabel j2_17;
    private javax.swing.JLabel j2_18;
    private javax.swing.JLabel j2_19;
    private javax.swing.JLabel j2_2;
    private javax.swing.JLabel j2_20;
    private javax.swing.JLabel j2_21;
    private javax.swing.JLabel j2_22;
    private javax.swing.JLabel j2_23;
    private javax.swing.JLabel j2_24;
    private javax.swing.JLabel j2_25;
    private javax.swing.JLabel j2_26;
    private javax.swing.JLabel j2_27;
    private javax.swing.JLabel j2_28;
    private javax.swing.JLabel j2_29;
    private javax.swing.JLabel j2_3;
    private javax.swing.JLabel j2_30;
    private javax.swing.JLabel j2_4;
    private javax.swing.JLabel j2_5;
    private javax.swing.JLabel j2_6;
    private javax.swing.JLabel j2_7;
    private javax.swing.JLabel j2_8;
    private javax.swing.JLabel j2_9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JLabel lbl_ganador;
    private javax.swing.JLabel lbl_tablero;
    private javax.swing.JLabel lbl_turno;
    private javax.swing.JMenuBar menu;
    private javax.swing.JMenu menuBitacora;
    private javax.swing.JMenuItem menuGuardarB;
    private javax.swing.JPanel pnl_tablero;
    private javax.swing.JLabel t0107;
    private javax.swing.JLabel t0206;
    private javax.swing.JLabel t0207;
    private javax.swing.JLabel t0306;
    private javax.swing.JLabel t0307;
    private javax.swing.JLabel t0308;
    private javax.swing.JLabel t0405;
    private javax.swing.JLabel t0406;
    private javax.swing.JLabel t0407;
    private javax.swing.JLabel t0408;
    private javax.swing.JLabel t0501;
    private javax.swing.JLabel t0502;
    private javax.swing.JLabel t0503;
    private javax.swing.JLabel t0504;
    private javax.swing.JLabel t0505;
    private javax.swing.JLabel t0506;
    private javax.swing.JLabel t0507;
    private javax.swing.JLabel t0508;
    private javax.swing.JLabel t0509;
    private javax.swing.JLabel t0510;
    private javax.swing.JLabel t0511;
    private javax.swing.JLabel t0512;
    private javax.swing.JLabel t0513;
    private javax.swing.JLabel t0601;
    private javax.swing.JLabel t0602;
    private javax.swing.JLabel t0603;
    private javax.swing.JLabel t0604;
    private javax.swing.JLabel t0605;
    private javax.swing.JLabel t0606;
    private javax.swing.JLabel t0607;
    private javax.swing.JLabel t0608;
    private javax.swing.JLabel t0609;
    private javax.swing.JLabel t0610;
    private javax.swing.JLabel t0611;
    private javax.swing.JLabel t0612;
    private javax.swing.JLabel t0702;
    private javax.swing.JLabel t0703;
    private javax.swing.JLabel t0704;
    private javax.swing.JLabel t0705;
    private javax.swing.JLabel t0706;
    private javax.swing.JLabel t0707;
    private javax.swing.JLabel t0708;
    private javax.swing.JLabel t0709;
    private javax.swing.JLabel t0710;
    private javax.swing.JLabel t0711;
    private javax.swing.JLabel t0712;
    private javax.swing.JLabel t0802;
    private javax.swing.JLabel t0803;
    private javax.swing.JLabel t0804;
    private javax.swing.JLabel t0805;
    private javax.swing.JLabel t0806;
    private javax.swing.JLabel t0807;
    private javax.swing.JLabel t0808;
    private javax.swing.JLabel t0809;
    private javax.swing.JLabel t0810;
    private javax.swing.JLabel t0811;
    private javax.swing.JLabel t0903;
    private javax.swing.JLabel t0904;
    private javax.swing.JLabel t0905;
    private javax.swing.JLabel t0906;
    private javax.swing.JLabel t0907;
    private javax.swing.JLabel t0908;
    private javax.swing.JLabel t0909;
    private javax.swing.JLabel t0910;
    private javax.swing.JLabel t0911;
    private javax.swing.JLabel t1002;
    private javax.swing.JLabel t1003;
    private javax.swing.JLabel t1004;
    private javax.swing.JLabel t1005;
    private javax.swing.JLabel t1006;
    private javax.swing.JLabel t1007;
    private javax.swing.JLabel t1008;
    private javax.swing.JLabel t1009;
    private javax.swing.JLabel t1010;
    private javax.swing.JLabel t1011;
    private javax.swing.JLabel t1102;
    private javax.swing.JLabel t1103;
    private javax.swing.JLabel t1104;
    private javax.swing.JLabel t1105;
    private javax.swing.JLabel t1106;
    private javax.swing.JLabel t1107;
    private javax.swing.JLabel t1108;
    private javax.swing.JLabel t1109;
    private javax.swing.JLabel t1110;
    private javax.swing.JLabel t1111;
    private javax.swing.JLabel t1112;
    private javax.swing.JLabel t1201;
    private javax.swing.JLabel t1202;
    private javax.swing.JLabel t1203;
    private javax.swing.JLabel t1204;
    private javax.swing.JLabel t1205;
    private javax.swing.JLabel t1206;
    private javax.swing.JLabel t1207;
    private javax.swing.JLabel t1208;
    private javax.swing.JLabel t1209;
    private javax.swing.JLabel t1210;
    private javax.swing.JLabel t1211;
    private javax.swing.JLabel t1212;
    private javax.swing.JLabel t1301;
    private javax.swing.JLabel t1302;
    private javax.swing.JLabel t1303;
    private javax.swing.JLabel t1304;
    private javax.swing.JLabel t1305;
    private javax.swing.JLabel t1306;
    private javax.swing.JLabel t1307;
    private javax.swing.JLabel t1308;
    private javax.swing.JLabel t1309;
    private javax.swing.JLabel t1310;
    private javax.swing.JLabel t1311;
    private javax.swing.JLabel t1312;
    private javax.swing.JLabel t1313;
    private javax.swing.JLabel t1405;
    private javax.swing.JLabel t1406;
    private javax.swing.JLabel t1407;
    private javax.swing.JLabel t1408;
    private javax.swing.JLabel t1506;
    private javax.swing.JLabel t1507;
    private javax.swing.JLabel t1508;
    private javax.swing.JLabel t1606;
    private javax.swing.JLabel t1607;
    private javax.swing.JLabel t1707;
    private javax.swing.JTextField txtDir;
    // End of variables declaration//GEN-END:variables
}
